Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Page 1 of 2 12 LastLast
Results 1 to 15 of 26
  1. #1
    New Coder
    Join Date
    Feb 2012
    Posts
    12
    Thanks
    11
    Thanked 0 Times in 0 Posts

    Should i learn php for game development?

    I want to get into game design but i dont really know what programing language to learn first. Are there languages that would work better with a specific genre of game or where i want to distribute it? also if there are any collage classes i can take to help me learn please let me know.

  • #2
    Senior Coder
    Join Date
    Jun 2008
    Location
    New Jersey
    Posts
    2,535
    Thanks
    45
    Thanked 259 Times in 256 Posts
    If you want to develop a website/web game, PHP can work (though there are probably better languages, python being one IMO). If you're actually looking to build a piece of software you can have people download, you need to learn a compiler based language like C++/Java.

    There are a ton of college classes for this sort of stuff, there are degrees focused solely on it, though they are, of course, not necessary. Its not like we can list off what those classes are... each college has different names for their courses.. you'll have to look it up yourself.

  • Users who have thanked Keleth for this post:

    Dennis3979 (02-29-2012)

  • #3
    New Coder
    Join Date
    Feb 2012
    Posts
    12
    Thanks
    11
    Thanked 0 Times in 0 Posts
    Thank you! all look into this python right away. but dose the specific genre matter for example i will have a much harder time programing an rpg then i would an action game in python?

  • #4
    Senior Coder
    Join Date
    Jun 2008
    Location
    New Jersey
    Posts
    2,535
    Thanks
    45
    Thanked 259 Times in 256 Posts
    Not really... there are probably better languages for producing games anyway, but I know python is popular for application based softwares, on a low budget.

    Its hard to say what to recommend, as not sure what your goal/intention is. Even in the end, with python, you won't really be able to do much in the way of graphics or such... what are you trying to make?

  • Users who have thanked Keleth for this post:

    Dennis3979 (03-02-2012)

  • #5
    New Coder
    Join Date
    May 2009
    Posts
    18
    Thanks
    4
    Thanked 4 Times in 4 Posts
    I don't think php or python either one is what you are looking for if you want to a shoot 'em up action game. They would ok choices for a role playing game though.

    c++ can be a little difficult to master right off if you don't have any experience with programming at all...on the other hand, "C" is about as fast as you can get without going to assembler.

    IF you want to try a shoot 'em up and are willing to put the work in to learning a language like "java" you could get away with it. There are even a number of good resources for learning java free on line.

    The java trails tutorials: http://docs.oracle.com/javase/tutorial/index.html

    The jmonkey game engine: http://jmonkeyengine.org/

    enjoy...

    Mark

  • Users who have thanked cnoevil for this post:

    Dennis3979 (03-02-2012)

  • #6
    New Coder
    Join Date
    Feb 2012
    Posts
    12
    Thanks
    11
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by Keleth View Post
    Not really... there are probably better languages for producing games anyway, but I know python is popular for application based softwares, on a low budget.

    Its hard to say what to recommend, as not sure what your goal/intention is. Even in the end, with python, you won't really be able to do much in the way of graphics or such... what are you trying to make?
    I plan on making an rpg to post on the web i dont expect to be having battle field graphics.My goal is to have something free toplay but i can update with new things when i can i want to learn as i go if that possible.I plan on going free to play to iphone if i do get a good amount of people playing it for a small profit. i think thats about as specific as i can get.


    post on the internet
    update able content
    and convert to be multiply form

    im not trying to get in over my head but if i can find some starting ground for what i want to active it would help out alot

  • #7
    New Coder
    Join Date
    Feb 2012
    Posts
    12
    Thanks
    11
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by Keleth View Post
    Not really... there are probably better languages for producing games anyway, but I know python is popular for application based softwares, on a low budget.

    Its hard to say what to recommend, as not sure what your goal/intention is. Even in the end, with python, you won't really be able to do much in the way of graphics or such... what are you trying to make?
    To be as specific as i can i want to make an rpg turn based to post on the web i want to be able to update it and add new content when i can and i want to be take it online for multiplyer. so what do you think still go with python or learn something else?

    (i understand i sound a little over my head here but id be willing to put the time in if i can just get some starting ground)

  • #8
    New Coder
    Join Date
    Feb 2012
    Posts
    12
    Thanks
    11
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by cnoevil View Post
    I don't think php or python either one is what you are looking for if you want to a shoot 'em up action game. They would ok choices for a role playing game though.

    c++ can be a little difficult to master right off if you don't have any experience with programming at all...on the other hand, "C" is about as fast as you can get without going to assembler.

    IF you want to try a shoot 'em up and are willing to put the work in to learning a language like "java" you could get away with it. There are even a number of good resources for learning java free on line.

    The java trails tutorials: http://docs.oracle.com/javase/tutorial/index.html

    The jmonkey game engine: http://jmonkeyengine.org/

    enjoy...

    Mark
    no i want to make a rpg but whats more complected to code i always wanted to know

  • #9
    Senior Coder
    Join Date
    Jun 2008
    Location
    New Jersey
    Posts
    2,535
    Thanks
    45
    Thanked 259 Times in 256 Posts
    Everything is complicated in its own way... Like I said, python limits you, graphically speaking... If you want to make something like maple story, eg, small, cheap, but requiring graphics, you need to go complier based, Java or c++ (I disagree that c++ is harder then Java.. I miss pointers in Java)... If you want to go browser based, even php can work, based on how intense you want to go. again, without details, advice is limited.

  • #10
    New Coder
    Join Date
    May 2009
    Posts
    18
    Thanks
    4
    Thanked 4 Times in 4 Posts
    Dennis: Well if you want to make a role playing game I'd say it's very doable in php. But Keleth is right in that everything is complicated in it's own way. There doesn't seem to be any easy "royal road" to writing code. Regardless of which path you choose it will always come down to many layers of complexity and abstraction built one on top of the other. You make a choice, dig in and learn it.

    Keleth: I think programming in c++ is more complex in the way you have to compose your files and build your executables. It seems to be that there is a bit more to grasp when it comes to including libraries and working with templates and what not. Java seems simpler to me in that regard. It is more straight forward when you want to access libs like opengl and directx with c++. Breaking loose from the windowing system in java can be a pain unless you use a decent graphics engine where someone else has already took the pain for you.

    I agree about the pointers though. I like them and I don't get all hubbub about how unsafe they are, however;it's been so long since I've used pointers that they'd probably be unsafe in my hands at this point.

    Mark

  • Users who have thanked cnoevil for this post:

    Dennis3979 (03-02-2012)

  • #11
    Senior Coder
    Join Date
    Jun 2008
    Location
    New Jersey
    Posts
    2,535
    Thanks
    45
    Thanked 259 Times in 256 Posts
    Heh, fair enough. I can see how the libraries issue becomes a concern at first, but I feel like its more of a hump to get over... once you do, it actually makes coding much easier. But as everyone can see, this is why selecting a language is not easy To each their own!

  • Users who have thanked Keleth for this post:

    Dennis3979 (03-02-2012)

  • #12
    New to the CF scene
    Join Date
    Mar 2012
    Location
    GA
    Posts
    8
    Thanks
    0
    Thanked 1 Time in 1 Post
    PHP is not really a good language to develop games in, at the moment. You could only really use it for the backend of game development, and you would have to learn HTML, CSS, Javascript(Ajaxy stuff too), and MySQL to get something working properly. You would have to get pretty good at Javascript to due something useful because no one really wants a game were the page refreshes everytime you click something. There are some games written with PHP and Javascript, but I don't recommend you go that route.

    If you are looking at something just to get you started I highly suggest python. Here is a link to a little zombie shooter game that I made in about a weekend or two. Want to do some more work on it, but I haven't got around to it. Shows what you can do with Python, and a cool little library for making games called Pygame. There are some awesome tutorials about this online that you can just google.

    When I started I knew nothing about Python so its pretty easy to use, and a good language to start with. If you learn Java first you have to understand some of more underlying programming concepts like object oriented programming, which is difficult for someone just starting off.

    Best of luck!

  • Users who have thanked super3 for this post:

    Dennis3979 (03-02-2012)

  • #13
    Regular Coder
    Join Date
    May 2008
    Posts
    446
    Thanks
    23
    Thanked 5 Times in 5 Posts
    for a turn based rpg with multiplayer feature... php is your man. If you want nice graphics incorporate html, css, and javascript, throw in some ajax and your interface will have a more streamlined interface that doesnt need to refresh to talk to php.

    I wouldnt do your graphics with php, thats for logic, db managment, etc. Get nice and familiar with mysql, rpgs are long games and require save pointsto be loaded later.

    Going web also has another anti-piracy advantage, much harder for others to use your game without your permision, great for subscription models.

    I would avoid jquery, fast to build in but slow performance.

  • Users who have thanked surreal5335 for this post:

    Dennis3979 (03-02-2012)

  • #14
    Senior Coder
    Join Date
    Jun 2008
    Location
    New Jersey
    Posts
    2,535
    Thanks
    45
    Thanked 259 Times in 256 Posts
    Quote Originally Posted by surreal5335 View Post
    I would avoid jquery, fast to build in but slow performance.
    Slow in performance? I haven't noticed that yet... I run a pen and paper gaming site, has maps, has graphics, the works, and it runs just as well as any other framework I've used, and developing the same stuff in raw JS would add a similar bloat to loading the framework. I'll look into it further, but given jQuery is the most commonly used JS framework, even used on a number of complex sites, while I don't doubt its slower then raw JS written by an expert, but learners or even just experienced dev's, I'd say its a better option. JS is so finicky, even small mistakes add on a lot of time.

    Quote Originally Posted by surreal5335 View Post
    Going web also has another anti-piracy advantage, much harder for others to use your game without your permision, great for subscription models.
    I would also contend that a web based, namely PHP based, app is more ripe to security issues. PHP isn't the best for security, and experienced hackers can get through code, specially if you're new to the language. In addition, because its a direct serve model, getting files is easy. And since its not compiled, once a file is taken, reading it is just opening it. If you're interested in building something complex, running PHP to display information retrieved from an applet from something like Python is better.
    Last edited by Keleth; 03-02-2012 at 07:04 PM.

  • #15
    Regular Coder dan-dan's Avatar
    Join Date
    Aug 2009
    Location
    England
    Posts
    483
    Thanks
    22
    Thanked 79 Times in 78 Posts
    If you're new to coding and wanting to develop games, I would personally go for Java.

    You'll get to learn 'object oriented programming' straight away, and it's easier to learn than other OOP languages.

    You won't be restricted to the web with your games. You can create web apps, Android apps and stand alone apps.

    It won't be easy, but nothing worth having is

    You don't need to take college classes, though it depends on the type of learning you're most happy with. Get onto Amazon and look at the book reviews, then choose a book that best suits you! Then buy another and another. With any language, there's sooo much to learn! Fortunately there's a lot of resources to help you along the way!

    One little hint, if buying books look at the published date. There's no point in learning depricated code haha.

    Good luck whatever you do
    Last edited by dan-dan; 03-02-2012 at 08:13 PM.

  • Users who have thanked dan-dan for this post:

    Dennis3979 (03-02-2012)


  •  
    Page 1 of 2 12 LastLast

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •