• Advertisement
Sign in to follow this  

What language should I make a game with?

This topic is 2648 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi,

I am a web developer that knows PHP + javascript along with other misc languages (if you can call them that) like html, xml, css etc.

I was wondering, are there any languages that have similarities with the above. Or at least a similar procedural style which doesn't involve learning something completely new.

I have looked at C# and I was just like... ... ...

It would just be good to be able to transfer some of my current skill set rather than have to scrap most of it and learn something completely new.

Share this post


Link to post
Share on other sites
Advertisement
C# is similar to java I think. and it is one of the easiest languages to program in, and most importantly, you get to use microsofts XNA framework which makes making games much easier and faster than languages like C/C++ and the game libraries for them.

Other people might recommend Python but I don't know much about that language.

so I recommend C# 2010 express and xna 4.0.

have fun!

Share this post


Link to post
Share on other sites
ah sorry, yeah for Linux I would recommend learning C.

I learned it using this tutorial which in my opinion is the best online

http://www.howstuffworks.com/c.htm

once you know C, a decent game library is allegro

http://alleg.sourceforge.net/

Share this post


Link to post
Share on other sites
Quote:
Original post by JasonS
I was wondering, are there any languages that have similarities with the above. Or at least a similar procedural style which doesn't involve learning something completely new.


Loosely speaking, I think PHP is like C++ for the web, and could be considered by you for building games. javascript syntax is based on the ECMAScript specification, which also borrows elements of C/C++ syntax.

C and C++ syntax has influenced the syntax of most important languages that are in use today: Java, javascript, C#, ActionScript and a multitude of others.

I think your next logical step would be to do a little study on C++. Microsoft Visual C++ is a great IDE. InteliJ IDEA is also an excellent IDE that supports C++ compilation, but it is expensive - although definitely worth the cost if you are dealing with a lot of files and large projects.

Share this post


Link to post
Share on other sites
If you want to make game for the web I recommand ActionScript or if you want to experiment maybe some html 5 with WebGL. Otherwise, you can take a look at java and JOGL (The OpenGL port for java) if you want to do some 3D.

Share this post


Link to post
Share on other sites
What about Python? There is a library for Python called PyGame which is is quite popular. Plus, Python is a very easy to learn and popular language and has a rich standard library. I also find its syntax very elegant. You might also find it very useful in your job as a Web Developer (last 'P' in 'Lamp' anyone?).

Share this post


Link to post
Share on other sites
I really don't get this Python deal. I checked it out on wikipedia and looked at this code example:

http://en.wikipedia.org/wiki/File:Python_add5_syntax.svg

looks like a complex mixture of C and something else

C, C# and even C++/CLI are the most straightforward languages in my opinion.

Share this post


Link to post
Share on other sites
Personally, I think c++ is better to use for game programming. Sure python is useful for quick coding, quick debugging, and enforces documentation (e.g. spacing) but it is not powerful enough for the later games. It would be used for addon scripts to your games. Networking, that type of thing can be done in python and ran inside of the c++ code. If you are interested in game programming past making simple games go for c++. If not, go for a high level language.

Share this post


Link to post
Share on other sites
Quote:
Original post by JonathanCCC
I really don't get this Python deal. I checked it out on wikipedia and looked at this code example:

http://en.wikipedia.org/wiki/File:Python_add5_syntax.svg

looks like a complex mixture of C and something else

C, C# and even C++/CLI are the most straightforward languages in my opinion.


wow that's some complicated code XD I thought Python was an easy language... but writing a game in that manner would drive me insane.

Linux has multiple options available. As stated previous, C and C++ are the more dominant options in the area. If you're aim is more than just a hobby, you will have to learn C++ eventually so might as well start now if you have experience in PHP (which I have no clue what it looks like and how it operates). I looked on wikipedia for PHP and it seems like PHP supports Object-Oriented Programming, so my say in this is, learn a language with OOP. C++, Java, or something else will work fine :)

Share this post


Link to post
Share on other sites
JavaFx is a nice free alternative to Flash and compares to c#. It, however, offers greater portability and can be run via browser (meaning easier distribution). It's also very easy to learn. Moreover, Netbeans can help you a ton.

Share this post


Link to post
Share on other sites
You could always try using the Unity engine and scripting in javascript :)

Share this post


Link to post
Share on other sites
Quote:
Original post by ChaosWars
If you are planning on an RPG I'd recommend Japanese.


Wtf? You can't program because you know Japanese. Anyway, I tryed C#, C++ and Java and I really recommend C# because it's really easier than both other languages I tryed to learn.

Share this post


Link to post
Share on other sites
IMO, C++ and Java is for people who intuitively see everything as objects. Those of us who tend to work our way through lists and notes might be better off using C. It even comes with a mind-blowing book

Share this post


Link to post
Share on other sites
Quote:
Original post by JonathanCCC
I really don't get this Python deal. I checked it out on wikipedia and looked at this code example:

http://en.wikipedia.org/wiki/File:Python_add5_syntax.svg

looks like a complex mixture of C and something else

C, C# and even C++/CLI are the most straightforward languages in my opinion.


If you don't know or get Python, why would you post about it? What you posted contains an example of some fairly complicated syntax for string manipulation, which isn't really anything to do with the topic and is only going to scare people away. I'm pretty sure I could dig out some C, C++ or even C# code that would have a similar terrifying effect.

It might be more sensible to show some like-for-like code, such as:

Ogre3d (C++) Beginner Tutorial 2:
http://www.ogre3d.org/tikiwiki/BasicTutorial2Source

Python-Ogre Beginner Tutorial 2:
http://wiki.python-ogre.org/index.php/Basic_Tutorial_2#Complete_Source_Code_Example

As far as I know, these are the same tutorial, written in the two different languages. Personally, I find the Python code a lot cleaner and clearer, but each to their own - I'm sure there are people who find the C++ code clearer.

To the OP, most languages share concepts with PHP and javascript, but what you're going to be trying to do is somewhat more complicated than rendering a web page. Perhaps you'd be happier looking at making mods for games, or using UDK or Unity or something like that which let you concentrate on game logic rather than rendering code? Might be worth a look, anyway!

Share this post


Link to post
Share on other sites
Quote:
Original post by nHawk
but it is not powerful enough for the later games. It would be used for addon scripts to your games. Networking, that type of thing can be done in python and ran inside of the c++ code. If you are interested in game programming past making simple games go for c++. If not, go for a high level language.


Really?
In which case you should probably contact CCP and point out the error of their ways as a vast amount of Eve is written in Python.

Python coupled with something like Pygame is a great combination for making a game.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement