Best Practice of cross-platform games

Posted on 2013-11-24 22:15  Flex/AS Programmer  阅读(127)  评论(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.

Copyright © 2024 Flex/AS Programmer
Powered by .NET 8.0 on Kubernetes