What language should I learn to do 2D turn-based video games?

I want to make 2-dimensional turn-based games for PC. Something like early Final Fantasy or Chrono Trigger. Is C ++ the only plausible option? They always tell me that C ++ is the language of choice for games, but is it even for 2D turn-based games? Are any other languages ​​used for this kind of thing? I'm really big on clean, readable, extensible code, so the language contributing to such things will be great.

Doing this for fun, not for business. Java is the only language that I really know well now.

By the way, this is my first question, and I'm noob. I read the FAQ, but if I do nothing, I'm sorry.

+4
source share
7 answers

Almost any language will do.

C, C ++, Java, C # - they all have good supporting libraries.

If you know Java, stick with it, find a good 2D library for it, and play.

Here is the official Java 2D Graphics tutorial from Sun.

Here is one graphics library for Java.

+7
source

You can write a 3D software engine in javascript if you want . It will not work fast. The reason people use C ++ is because, as a rule, you get better performance with a good compiler that compiles machine code. However, I have seen many games (2D and 3D) written in Java, ActionScript, Python and a number of other languages. You can use any language you want, but remember that you are most likely to get better performance using assembler if you know what you are doing;)

+2
source

For 2D games, especially turn-based games, any language will do. Even high-level languages ​​like Python and Ruby are great and have corresponding libraries (like pygame ).

+2
source

Take a look at C # and the XNA Framework developed by Microsoft. XNA Framework allows you to create games for desktop computers, XBOX and ZUNE.

+2
source

C ++ is only a parameter, but it has a whole bunch of great graphic (including 2D) libraries that would make development easier.

This is a good place to start: http://www.thefreecountry.com/sourcecode/graphics.shtml

+1
source

Well, if you like Java, Slick2D is a great library built on top of the LWJGL (LightWeight Java Game Library). I would check both of them:

Lwjgl

Slick2d

PS LWJGL also works with 3D games on which Minecraft was built.

+1
source

I would use Java for a 2D game because it already has graphical libraries like JFrame and JPanel!

0
source

Source: https://habr.com/ru/post/1305940/


All Articles