P
P
priority2019-09-05 07:30:47
Mobile development
priority, 2019-09-05 07:30:47

How are cross-platform games written in C++?

Good afternoon. I wondered about the possibility of writing a game in C ++ that would run on Android, iOS, Window. I heard about the workload for VS, but as I understand it, this is just the ability to write natives, or write my own engine on top, which I probably won’t pull.
I tried Java with LibGDX, C# with Monogame (and poked Unity), but now I have a desire to try to do something on the pluses.
So, if you were to set yourself such a task, where would you start?
Thank you.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
R
RabraBabr, 2019-09-05
@RabraBabr

With Qt https://www.qt.io/.

P
Pavel Sysolyatin, 2019-09-05
@PSyton

Why C++? As a rule, C ++ is used as the basis for the low-level part of the engine, and all logic is written in something simpler.
If it is a matter of multiplatform and everything is done from scratch, then some ready-made and well-known engine is better suited. The same UE or Unity.
If you really want C++, then look, for example, at https://github.com/mosra/magnum

A
Adamos, 2019-09-05
@Adamos

If you are not afraid of the angelic - take a look at https://cocos2d-x.org/download
Now I am just rebuilding the program for iOS, updated for Android.
Desktop ports are also there.
But this is in case you have a toy with graphics and a minimum of GUI.
It is better to do GUI applications on Qt, the toolkit is noticeably richer there.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question