二维戏编程基础.pptxVIP

  • 1
  • 0
  • 约3.09千字
  • 约 81页
  • 2018-11-25 发布于福建
  • 举报
2D游戏编程基础;主要内容;课程目标; 1. 初始化 2. 进入游戏循环 3. 查询用户输入状态 4. 执行游戏逻辑和AI判断 5. 绘制图像 6. 循环 7. 退出 ; 1. 初始化 2. 进入游戏循环 3. 查询用户输入状态 4. 执行游戏逻辑和AI判断 5. 绘制图像 6. 循环 7. 退出 ;;// defines for game loop states #define GAME_INIT 1 // the game is initializing #define GAME_MENU 2 // the game is in the menu #define GAME_STARTING 3 // the game is about to run #define GAME_RUN 4 // the game is now running #define GAME_RESTART 5 // the game is going to restart #define GAME_EXIT 6 // the game is exiting // game globals int game_state = GAME_INIT; // start off in this state Int error = 0; // used to send error

文档评论(0)

1亿VIP精品文档

相关文档