自制小游戏核心代码.docVIP

  • 801
  • 0
  • 约1.58万字
  • 约 3页
  • 2017-06-08 发布于河南
  • 举报
自制小游戏核心代码

自制小游戏核心代码 /* Beginning Game Programming, Third Edition Anti-Virus Game MyGame.cpp */ #include MyDirectX.h #include sstream using namespace std; const string APPTITLE = Anti-Virus Game; const int SCREENW = 1024; const int SCREENH = 768; //font variables LPD3DXFONT font; LPD3DXFONT debugfont; //timing variables bool paused = false; DWORD refresh = 0; DWORD screentime = 0; double screenfps = 0.0; double screencount = 0.0; DWORD coretime = 0; double corefps = 0.0; double corecount = 0.0; DWORD currenttime; //background scrolling variables const int BUFFERW = SCREENW * 2; const int BUF

文档评论(0)

1亿VIP精品文档

相关文档