Best Practice of cross-platform games

Posted on 2013-11-24 22:15  Flex/AS Programmer  阅读(138)  评论(0)    收藏  举报

__super keyword

this keyworld is offered only by Microsoft VC. So you had to call the very name of parent class, instead of __super.

folder separator

"\"is the separator of windows. For cross-platform games, you must use "/" in all sources.

standard C library & STL

Use standard C library & STL instead of the particular APIs of each platform.
Note that some functions seem like the members of standard C library, but actually they aren't. Especially, junior programmers with only windows platform experience usually can't differentiate API set between standard C and win32 API.

博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3