首页 课程资源 游戏开发     /    【C语言】贪吃蛇游戏代码(VisualC++6.0实现)

【C语言】贪吃蛇游戏代码(VisualC++6.0实现)

上传者: includei | 上传时间:2024/3/22 7:24:47 | 文件大小:457KB | 文件类型:rar
【C语言】贪吃蛇游戏代码(VisualC++6.0实现)
本游戏代码参考《C语言项目开发全程实录(第二版)》第六章。
代码已在VisualC++6.0环境下编译测试通过,可在VC++6.0编译器中导入工程编译运行查看效果,或者也可以直接运行Release或Debug文件夹下的snake.exe文件进行游戏。
代码包含大量注释,每一个变量,数据结构,函数都有文字说明,函数注释统一放在函数开头以/**/为界,语句注释以//为始跟随在语句后,通过大量注释可以快速方便地理清程序结构,添加或修改程序内容。
本项目使用C语言开发,实现了贪吃蛇游戏的主要功能,包括键盘方向键控制蛇前进方向,F1/F2加速/减速,空格键暂停等,具体可以查看系统内的游戏说明。
在游戏过程中蛇头不能碰到墙壁或者自身,否则游戏失败,取得最高后系统将会进行记录。
最后,haveagoodtime!

文件下载

资源详情

[{"title":"(24个子文件457KB)【C语言】贪吃蛇游戏代码(VisualC++6.0实现)","children":[{"title":"snake","children":[{"title":"ReadMe.txt <span style='color:#111;'>1.17KB</span>","children":null,"spread":false},{"title":"StdAfx.h <span style='color:#111;'>667B</span>","children":null,"spread":false},{"title":"Release","children":[{"title":"snake.obj <span style='color:#111;'>28.54KB</span>","children":null,"spread":false},{"title":"vc60.idb <span style='color:#111;'>41.00KB</span>","children":null,"spread":false},{"title":"save.txt <span style='color:#111;'>1B</span>","children":null,"spread":false},{"title":"snake.pch <span style='color:#111;'>182.71KB</span>","children":null,"spread":false},{"title":"StdAfx.obj <span style='color:#111;'>228B</span>","children":null,"spread":false},{"title":"snake.exe <span style='color:#111;'>64.00KB</span>","children":null,"spread":false}],"spread":true},{"title":"snake.opt <span style='color:#111;'>52.50KB</span>","children":null,"spread":false},{"title":"snake.cpp <span style='color:#111;'>19.42KB</span>","children":null,"spread":false},{"title":"snake.ncb <span style='color:#111;'>49.00KB</span>","children":null,"spread":false},{"title":"Debug","children":[{"title":"vc60.pdb <span style='color:#111;'>228.00KB</span>","children":null,"spread":false},{"title":"snake.obj <span style='color:#111;'>81.93KB</span>","children":null,"spread":false},{"title":"vc60.idb <span style='color:#111;'>129.00KB</span>","children":null,"spread":false},{"title":"snake.ilk <span style='color:#111;'>1.10MB</span>","children":null,"spread":false},{"title":"snake.pch <span style='color:#111;'>182.63KB</span>","children":null,"spread":false},{"title":"StdAfx.obj <span style='color:#111;'>1.65KB</span>","children":null,"spread":false},{"title":"snake.exe <span style='color:#111;'>220.06KB</span>","children":null,"spread":false},{"title":"snake.pdb <span style='color:#111;'>633.00KB</span>","children":null,"spread":false}],"spread":true},{"title":"save.txt <span style='color:#111;'>2B</span>","children":null,"spread":false},{"title":"snake.dsp <span style='color:#111;'>4.47KB</span>","children":null,"spread":false},{"title":"snake.dsw <span style='color:#111;'>516B</span>","children":null,"spread":false},{"title":"snake.plg <span style='color:#111;'>244B</span>","children":null,"spread":false},{"title":"StdAfx.cpp <span style='color:#111;'>292B</span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

【好快吧下载】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【好快吧下载】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【好快吧下载】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,8686821#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明