What Language Is Best For Game Programming?

Started by
15 comments, last by Brain 7 years, 9 months ago

Yes, I do know there is on such thing as a good programming language for game development. Maybe you can supply me one based on what I want to do?

So I've been thinking about game development, and have come to the conclusion that thats what I want to do with my life. Then, I decided that I should create one lol, and I looked at what I was going to be taking on, money, etc.

The only question is what is the best programming language for the game I want to make?

Here is what the game would be:

  • 2D
  • Indie Game
  • Pixel Art

I am looking for a programming language(s) that:

  • Easily have a GUI ( pop-out window ) with code, not anything external
  • Doesn't matter if its really hard or really easy
  • Works on Linux ( My current OS ) windows and Mac OS
  • Can be executed by being clicked on ( Feel stupid for asking this, but I think I need to for some reason )

I know it will be more than one language for the different OS's.

Also, if there is a could tutorial on the programming language(s) could you recommend me one? A book maybe?

Thanks a ton!

Advertisement
Obligatory resource.

Wielder of the Sacred Wands
[Work - ArenaNet] [Epoch Language] [Scribblings]

Not what I was looking for, but thanks a ton for the link, it might help me out in the future!!

Again, thanks for helping me out!!

So I've been thinking about game development, and have come to the conclusion that thats what I want to do with my life. Then, I decided that I should create one lol, and I looked at what I was going to be taking on, money, etc.

1. Please don't decide what to do with your life before you have tried it. Never a good idea.

2. ApochPiQ's response is actually correct, so spend a little more time thinking about what it says.

3. You don't want to use different languages for different operating systems.

I get the sense that you do not have much programming experience? How much programming have you done?

Making a game by yourself involves programming, game design, sound, music, art, writing, and a whole bunch of other things, so give it a try, but don't expect to make anything great the first time. I do not know of ANY developer who's first game was any good.

I think, therefore I am. I think? - "George Carlin"
My Website: Indie Game Programming

My Twitter: https://twitter.com/indieprogram

My Book: http://amzn.com/1305076532

I am looking for a programming language(s) that:

  • Easily have a GUI ( pop-out window ) with code, not anything external
  • Can be executed by being clicked on ( Feel stupid for asking this, but I think I need to for some reason )

I have no idea what you're actually talking about here.

A pop-out window with code? What does it pop out from? Not external to what?

Programming languages are an abstract concept; you can't click on abstract concepts.



Step 1: You need to get better at clearly describing what you want. Because that's the very first skill you must have as a programmer.

Well, if you really just don't know where to begin and you need advice on where to start, then learning C++ is probably your safest bet, especially if you plan on doing game development as a profession. C++ is widely used in game development for everything from small indie games to AAA titles, so there are tons of resources out there for creating games with it. As long as cross-compatibility is kept in mind when creating the code, little effort is needed to compile and run your game on different machines, including Windows, Mac, Linux, iOS, Android, and more.

For C++ tutorials, here is a video series aimed at absolute beginners: https://www.youtube.com/playlist?list=PL1D10C030FDCE7CE0

Here is another C++ tutorial which focuses on using it for creating games: https://www.youtube.com/playlist?list=PLSPw4ASQYyynKPY0I-QFHK0iJTjnvNUys

For written tutorials, here is a great series (which is also great for reference): http://www.learncpp.com/

You'll need to use an API for handling input and rendering graphics, so I recommend using SDL due to its cross-platform support: https://www.libsdl.org/

And here is a tutorial series for setting up and using SDL: http://lazyfoo.net/tutorials/SDL/

After going through all those other resources, you may also want to check out this series which uses C++ and SDL to create a game from scratch: https://www.youtube.com/playlist?list=PL006xsVEsbKjSKBmLu1clo85yLrwjY67X

I hope that helps you get started!

I'd recommend trying to crawl before you run. Maybe get an existing engine/tool like Unity and begin by making a game with that. Maybe there's a better option for 2D games, I dont know since 2D pixel art games are not my thing, but you can ask here and I'm sure someone will help you. But, you dont want to commit to doing this as your long term goal without first dipping your feet and seeing if you like it at all.

If you're using Unity (for example), then pick a language it supports like C#. Once you make your first game or two, you will know a lot more about how games are made and whether you like it enough to continue. At that point you could move on to something like C++ which is the industry standard.

I am looking for a programming language(s) that:

  • Easily have a GUI ( pop-out window ) with code, not anything external
  • Doesn't matter if its really hard or really easy
  • Works on Linux ( My current OS ) windows and Mac OS
  • Can be executed by being clicked on ( Feel stupid for asking this, but I think I need to for some reason )

Any random language you're likely to choose will very likely offer all of that functionality, with the note that some choices (such as Python) may require an additional packaging step to produce a "clickable" executable for some target platforms.

I know it will be more than one language for the different OS's.

Actually, most popular languages you might be likely to choose from (C#, Python, Java, C++, etc.) will work on all of your listed target platforms.

As ApochPiQ's linked post says, the correct answer to your particular question is really "it doesn't matter". Given your list of requirements any popular mainstream language will meet your needs. My suggestion would be to look up beginner tutorials for each language you might be considering, read through a few of them for each, and choose the one that you feel might be most comfortable for you: then just dive in and start learning that language. You can't really make a wrong choice!

If I'm asked to make a recommendation (and again: you can't really make a wrong choice, so any other option you're likely to choose is equally ok) I would personally suggest C#:

  • It's well supported, and can be used on all of your listed target platforms and more.
  • It's reasonably popular, so there are plenty of learning resources and examples available.
  • It can be used with popular libraries (such as MonoGame) or a popular engine (Unity), offering you some flexibility in that regard.
  • There are good tools available.

To drive it home one last time though, a similar list could be written for other popular languages such as Java or C++.

- Jason Astle-Adams

Programming languages are tools in a tool box.

Select the right tool for the right job and learn how to use many tools...
Python is a great language to hack and quite speedy with pygame. Or you can try out c++ with sdl/sfml

C++ might be ideal if you want to get professional with it.

This topic is closed to new replies.

Advertisement