开发者

How they build the identical game on Mac, PC, and Flash? For example: Plants VS Zombies

Such as th开发者_运维百科e famous game Plants VS Zombies, or Machinarium. They have Mac and PC version, and even online flash demo. It must be a flash engine or something, does anyone know this, what's that?


I once worked on a video game which ran on windows, gamecube and PS2. The game engine rendered the graphics using RenderWare. The RenderWare API was the same for all the platforms, but the machine code was actually different and customized for each platform. When we wrote the code, the code we wrote would be linked to 3 different renderware libraries, 1 for windows, 1 for PS2 and 1 for gamecube.

The actual game code was written in basic C and didnt use any platform specific library.

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


Well, for one thing, you definitely can write Flash apps in C/C++.

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

And I suppose with some C macros you can make it cross-compile between 3 platforms simultaneously with some effort.

Other possibilities would including using something like Haxe or the NekoVM sort of thing.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜