A
A
Alexander Shpak2016-10-20 20:51:54
Programming
Alexander Shpak, 2016-10-20 20:51:54

Choosing a programming language for writing 2d games?

A little bit of background:
Like many guys of my age, I became interested in programming. I started with the web, as before, and now I think that the future is for the WEB. Learned html, css, some php and javascript (and query). I got basic knowledge about cycles, arrays, databases, (I didn’t understand OOP very well). But lately I've been drawn to regular programming.
Essence of the question:
I want to try to start writing a few simple games, such as snake, tic-tac-toe, tetris. Well, then I have big plans =) I'm more inclined towards programming for 2d, but the question arose, what language to learn? (After all, I just started learning Delphi at school (I'm in grade 11)).
My goal:
To become a good programmer in this area (2d games) and make my own top game, in the end, I want to create a 2d (rpg) multiplayer client-server game, the point is that one player would play the story (or in paati 3-4), but there was a link to the general market, the auction (something similar in Diablo 3). Although after the 11th grade I go, not at all to a programmer, I want to learn this craft. I look forward to your responses and criticism. Recommend literature if possible.
PS Game engines, designers do not offer

Answer the question

In order to leave comments, you need to log in

5 answer(s)
I
Ivan, 2016-10-20
@LiguidCool

Like many guys of my age, I became interested in programming.

Many right?
Well, let's start with the fact that programming here is only JS. And then some moving menus on the JQ are directly related to programming. html and css markup languages ​​(not programming). JQuery is generally a library a la Lego, writing on it has such a relation to JS.
And really, what the heck. It's all implemented in almost everything.
What is the real question then? Once you have learned the web, do it on it.
I'll tell you - there is the same Canvas , WebGL . Here's an example for you .

R
RedHairOnMyHead, 2016-10-20
@ThePyzhov

C++, SFML

I
Ivan Bogachev, 2016-10-20
@sfi0zy

I don't understand OOP very well.

Still worth looking into. And not only with OOP. If you started Javascript - so be it - look through at least books from O'Reilly with animals on the cover and deal with everything that is there. First, about Javascript itself, then about design patterns, then again and again - version control systems, build systems ... You have time to learn something - use it. And just reading about data structures and algorithms will not be superfluous - it expands your horizons and can suddenly come in handy. On the topic, I usually suggest reading Robert Sedgwick's algorithms, but this is a matter of taste.
It is possible to combine this case with the previous one - it is quite possible to draw all this on canvas, and the logic there is not complicated.
2d-games is a loose concept. There are different platforms - they will recommend one for PC, another for consoles, a third for mobile devices ... and simple toys can be launched simply in the browser. I would advise (personal opinion, not the opinion of others) to learn C ++ and deal with such a thing as SDL. There is a corresponding book SDL Game Development. This is such a cross-platform (linux, windows, mac, ios, android...) solution to many problems that arise when developing games (not only 2d) - sound, keyboard, mouse, joysticks, touchscreen, etc. As a bonus, using this book as an example, you can understand the approximate construction of a platformer engine and write your own (knowledge from point 1 is required).

X
xmoonlight, 2016-10-21
@xmoonlight

I'm more inclined towards programming for 2D, but the question arose, what language to learn? (After all, I just started learning Delphi at school (I'm in grade 11)).
So TEACH what you have already started and know! Don't let others outrun you:
Delphi has life !
You can compile and package your games as
standalone (Linux, Windows, Mac OS X, FreeBSD, more... 32-bit and 64-bit),
mobile (Android, iOS),
web browser plugin (Linux, Windows, for browsers supporting NPAPI).

hydra_battles_screen_best.png

A
Alec Onim, 2016-10-21
@Caitiff_One

In my opinion, in order to at least roughly understand how it works there, under the hood, it’s worth taking a bunch of C ++ and SDL for a start (it doesn’t really matter which version).
On the plus side for beginners, there is an excellent book by Laforet.
There are great guides on SDL from lazyfoo

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question