学了C语言,如何开发一个有声有色的俄罗斯方块游戏?

学了C语言,如何开发一个有声有色的俄罗斯方块游戏?

5 (14人评价)
  • 课时:(7)

  • 学员:(1289)

  • 浏览:(62888)

  • 加入课程

利用Windows API创建应用程序窗口) 的笔记

相关课时: 笔记详情:

编译器:VS2010

改动:

(1)不需要 #include <stdbool.h>,使用int作为返回类型;

(2)const char* APPTITLE = "Tetirs Game";这一句改为 LPCTSTR APPTITLE = L"Tetirs Game"; 否则输出为乱码,L+字符串表示将字符串转换成Unicode元集(VS中使用的是Unicode元集)

(3)bool InitInstance(HINSTANCE hInstance, int nCmdShow) 改为 int …

(4)所有 false 改为 0,true 改为 1

1 1