K
K
Kruger2017-08-02 17:32:23
C++ / C#
Kruger, 2017-08-02 17:32:23

Is a 2d game in C++ real without graphics libraries and engines?

I decided to write a 2D game for myself, I'm going to write in C ++. Is it possible (I mean a reasonable time (month)) to write my own implementation of the game window, splitting into hexes, processing character animation, without resorting to graph libraries, ala directX, openGL or SFML. If yes, then where to dig, to create at least a window, am I right in thinking that WinAPI will suit me

Answer the question

In order to leave comments, you need to log in

5 answer(s)
M
Mercury13, 2017-08-02
@Mercury13

Without DirectX or OpenGL anywhere, these are the lowest-level APIs that provide both speed and even the slightest compatibility.
I advise you to use a thin wrapper over all this stuff like SDL: I think it will be more interesting to write a game than to solve problems with Alt-Tab.
And so, if you set a goal, you can make a small engine in a week or two. The rest is better left to bug fixes and content.
I do not advise working with hexes, and here's why. Hexes immediately imply that the game is turn-based. AI tortured to write!
And further. An animation system can be written during this time, but making a good animation editor is more difficult. Each frame is a separate picture, and that's it?

K
Konstantin Kitmanov, 2017-08-02
@k12th

If you first study existing engines for a couple of years, then you can do it in a month :)

R
RedSkotina, 2017-08-02
@RedSkotina

maybe, but why?
And if you take into account that WinApi is essentially the same engine, then you are on the road to the real processor mode and uncomplicated machine code.
Although it is best to make the processor yourself, otherwise you can’t use other people’s interrupts.

H
HellWalk, 2017-08-02
@HellWalk

In my free time I play my browser-based MMORPG - there is no real-time gameplay, everything is text-images-links
HTML + PHP + AJAX + MySQL
I'm not talking about text games. So everything is possible.

R
RabraBabr, 2017-08-03
@RabraBabr

Depends on your level. For example, it’s really possible for me to deploy a project in, say, some kind of MS Visual Studio or Qt Creator and sketch out the basic alpha in pure c ++ in a couple of days. 2-3 months for a simple project of which two-thirds of the time will be spent on testing. But I have a wealth of knowledge, in my head there are a lot of patterns that have been deposited with experience, how and what to do, and an understanding of the processes. I made like three dozen games. But I think a beginner will constantly run into some kind of problems, the solution of which will take a lot of time. In general, it will be difficult, but everything is possible.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question