摘要:
VERSION = 1.0.0 SOURCE = $(wildcard ./*.cpp) OBJ = $(patsubst %.cpp,%.o,$(SOURCE)) INCLUDE = -I /usr/include/mysql/ LIBS = -lmysqlclient LIB_PATH = -L /usr/lib/mysql/ CFALGS = -g TARGET = test ... 阅读全文
摘要:
main()函数先调用初始化init(),然后进入循环while()。循环主要三部分: 1.判断用户操作,如果是w或者是空格键被按下,bird就向上飞两行;如果按下q键则退出游戏;z键暂停游戏; 2.移动bird进行重绘 3.判断bird是否撞到柱子 init()函数首先初始化屏幕,调用了ncurs 阅读全文