9 Replies - 1512 Views - Last Post: 23 October 2009 - 11:03 AM Rate Topic: -----

#1 C++Matrix   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 41
  • Joined: 01-September 09

C++ to PHP

Posted 22 October 2009 - 08:00 AM

Is it hard to go from a intermediate programmer in C++ and going into PHP, I just used C++ to get me into programming and game making, and now would like to go into PHP or ColdFusion or Python. What would be the best language to make a 2d game? I know PHP can only do internet games, and ColdFusion was used to make MySpace, I'm not entirely sure on what language I want to go into next, or just stay in C++, are there any suggestions? My main questions is what is the easiest language to learn that you can make a 2d game with? My inspirations are Pokemon, Rollercoaster Tycoon, and Fire Emblem.

Is This A Good Question/Topic? 0
  • +

Replies To: C++ to PHP

#2 RudiVisser   User is offline

  • .. does not guess solutions
  • member icon

Reputation: 1010
  • View blog
  • Posts: 3,566
  • Joined: 05-June 09

Re: C++ to PHP

Posted 22 October 2009 - 08:09 AM

Erm, PHP is just a web scripting language, it can't be used to make 2D games since it's server side. You could of course use it along with Javascript or Flash to produce an interactive environment - But text baed would be what you're looking at.

ColdFusion is the same as above and I've never heard of much that ever ran ColdFusion.

Python I have no experience with, but from what I've heard it's powerful, and I've seen some games that have been produced with it - So that would probably be your best bet.

EDIT: Basically C++ and PHP/ColdFusion cannot be compared, as the first is an application development language and the second is server-side scripting.

This post has been edited by RudiVisser: 22 October 2009 - 08:19 AM

Was This Post Helpful? 0
  • +
  • -

#3 Anarion   User is offline

  • The Persian Coder
  • member icon

Reputation: 387
  • View blog
  • Posts: 1,663
  • Joined: 16-May 09

Re: C++ to PHP

Posted 22 October 2009 - 08:13 AM

Learning PHP was easy form me, because it's much similar to C++ in most of the syntax. But it's just a server-side language and therefore you don't have the power you have in C++.
Was This Post Helpful? 0
  • +
  • -

#4 4D1   User is offline

  • D.I.C Head

Reputation: 22
  • View blog
  • Posts: 225
  • Joined: 22-October 09

Re: C++ to PHP

Posted 22 October 2009 - 08:47 AM

The guy that developed PHP is said to have borrowed the syntax from C++ they are very similar in syntax, I was the opposite I wanted to learn PHP so started studying it then moved to C++ and found that I already knew most of the basics. I think most langauges are very similar, C++, VB, Lua, C, Java etc once you have learnt C++ you should pick up other languages quite nicely.

This post has been edited by 4D1: 22 October 2009 - 08:47 AM

Was This Post Helpful? 0
  • +
  • -

#5 C++Matrix   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 41
  • Joined: 01-September 09

Re: C++ to PHP

Posted 22 October 2009 - 03:42 PM

I don't have enough money to buy flash and learn ActionScript. So what language should I learn, it doesn't have to be PHP, or Coldfusion, how can I make a 2d game?
Was This Post Helpful? 0
  • +
  • -

#6 RudiVisser   User is offline

  • .. does not guess solutions
  • member icon

Reputation: 1010
  • View blog
  • Posts: 3,566
  • Joined: 05-June 09

Re: C++ to PHP

Posted 22 October 2009 - 03:56 PM

C++/C#??
Was This Post Helpful? 0
  • +
  • -

#7 Master Jake   User is offline

  • D.I.C Head
  • member icon

Reputation: 16
  • View blog
  • Posts: 108
  • Joined: 27-February 09

Re: C++ to PHP

Posted 22 October 2009 - 04:21 PM

A lot of them are similar because most of them are based off of C.
Was This Post Helpful? 0
  • +
  • -

#8 C++Matrix   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 41
  • Joined: 01-September 09

Re: C++ to PHP

Posted 23 October 2009 - 07:52 AM

I guess I'll just stick with C++ then! Thanks for your fast replies!
Was This Post Helpful? 0
  • +
  • -

#9 NickDMax   User is offline

  • Can grep dead trees!
  • member icon

Reputation: 2255
  • View blog
  • Posts: 9,245
  • Joined: 18-February 07

Re: C++ to PHP

Posted 23 October 2009 - 08:16 AM

Well the problem with C/C++ for simple games is the learning curve -- lets face it C/C++ is not a very rapid development platform and learning all the ins and outs of GUI programming is kind of a pain in C/C++.

So if you are just looking for a quick way to get in and try your hand at creating 2d games C/C++ may not be the best place to start.

Languages such as Java, C#, VB.net are much more suited to the rapid development of things like games.

PHP/Python less so though there certainly is no reason why you can't. PHP does not HAVE to be strictly a web programming language (though... since people generally only install PHP for server-side scripting -- your program would pretty much only run on servers and developer machines. But you can do it (does not mean you SHOULD)).

BUT! There is the whole thin-client thing. Basically making web-based games can take advantage of PHP's power on the server. To Javascript/PHP as a combo is a great way to make games for the browser. The PHP side handles getting data from the server, and the Javascript handles displaying it on the client.

Which brings me to Javascript -- I *highly* recommend getting some experience in Javascript. I personally think that every programming should know the basics of HTML/CSS/Javascript -- So spending some time on this platform may not be bad either.

If you really know C/C++ then learning another language is not really all that hard (Javascript can be a little hard -- not because the language is hard, but because it is so similar in to C in feel and yet so very very vastly different - many programmers "think" they know Javascript, but really they don't "get it" because they are still thinking like an OOP/Procedural programmer.)
Was This Post Helpful? 0
  • +
  • -

#10 AGRAC393   User is offline

  • D.I.C Head
  • member icon

Reputation: 3
  • View blog
  • Posts: 248
  • Joined: 13-May 09

Re: C++ to PHP

Posted 23 October 2009 - 11:03 AM

Dark GDK (c++)
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1