How do they create an identical game on Mac, PC and Flash? For example: plants VS zombies

Such as the famous games Plants VS Zombies, or Machinarium. They have a Mac and PC version, and even an online demo version. It has to be a flash engine or something else, does anyone know what this is?

+2


source to share


2 answers


Well, first of all, you can definitely write Flash applications in C / C ++.

Watch this video: http://www.youtube.com/watch?v=0hX-Uh3oTcE



And I suppose with some C macros you can do it cross-compile between 3 platforms at the same time with some effort.

Other possibilities include using something like haXe or NekoVM .

+2


source


I once worked on a video game that worked on windows, gamecube and PS2. The game engine rendered the graphics using RenderWare. The RenderWare API was the same for all platforms, but the native code was actually different and was customizable for each platform. When we wrote the code, the code we wrote will be linked to three different rendering libraries: 1 for windows, 1 for PS2, and 1 for gamecube.

The actual game code was written in basic C and did not use any platform library.



OpenGL is available on most platforms and is a popular choice for cross-platform graphics.

+3


source







All Articles