4.2游戏程序框架
2006-08-05 04:28
218 查看
// initialize game here
Game_Init();
// enter main event loop
while(TRUE)
{
// test if there is a message in queue, if so get it
if (PeekMessage(&msg,NULL,0,0,PM_REMOVE))
{
// test if this is a quit
if (msg.message == WM_QUIT)
break;
// translate any accelerator keys
TranslateMessage(&msg);
// send the message to the window proc
DispatchMessage(&msg);
} // end if
// main game processing goes here
Game_Main();
} // end while
// closedown game here
Game_Shutdown();
Game_Init();
// enter main event loop
while(TRUE)
{
// test if there is a message in queue, if so get it
if (PeekMessage(&msg,NULL,0,0,PM_REMOVE))
{
// test if this is a quit
if (msg.message == WM_QUIT)
break;
// translate any accelerator keys
TranslateMessage(&msg);
// send the message to the window proc
DispatchMessage(&msg);
} // end if
// main game processing goes here
Game_Main();
} // end while
// closedown game here
Game_Shutdown();
相关文章推荐
- Unity3d面试6 DontDestroyOnLoad();PlayerPrefs;协同程序;游戏框架;Unity中播放视频;LOD技术
- Android游戏笔记(六)Android游戏程序框架
- Qt是一个不错的库。因此在一些场合下,可以基于Qt搭建程序和游戏框架。
- iOS游戏框架Sprite Kit基础教程第1章编写第一个Sprite Kit程序
- iOS游戏框架Sprite Kit基础教程第1章编写第一个Sprite Kit程序
- vc游戏--01--windows API程序框架
- M8SDK教程-游戏开发心得(一):游戏程序框架(05-18更新)
- SRPG游戏开发(十九)第六章 基本框架 - 四 程序入口(Application Entry)
- 重现那款曾经为之痴迷的游戏[2] -- 程序基本框架
- “猜数字”游戏的框架程序(javascript版)
- Amazed游戏学习一 程序框架
- DirectX&Direct 3D 游戏开发之——构建3D程序基本框架
- msec 腾讯CICD程序框架发布
- 微信小程序框架中的app.json配置(一)
- 基于cocos2d-x引擎的游戏框架设计
- 腾讯某组游戏框架
- 网易开源游戏服务器框架-Pomelo实践(一)
- Android程序框架设计思想01
- IOS开发笔记 (4) ---第一个IOS界面程序兼谈IB在XCode4.2中的应用
- 在Python的web框架中编写创建日志的程序的教程