文件名称:snake
- 所属分类:
- 游戏
- 资源属性:
- [Windows] [Visual C] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 1.65mb
- 下载次数:
- 0次
- 提 供 者:
- j***
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
贪食蛇编程要点
1、每次刷屏时需要注意无效矩形区的大小和位置,一般取整条蛇最小坐标和最大坐标组成的矩形(包括蛇的头和身体)
2、蛇全身的运行轨迹应该参照蛇头的运行轨迹
3、蛇吃下东西之后身体各点的变化情况应该参照第一点的变化,即第一点发生变化之后下一时间段第二点发生变化,再下一时间段第三点发生变化,依此类推,直到最后一点发生变化结束
4、分数的计算变量:蛇吃的一般屎数量、蛇吃大屎的数量、游戏的难度级别
计算公式:(一般屎数量+大屎数量)*难度级别
5、一个问题:游戏的难度设置选项框和主窗口发生数据交换采用了两种方法,发送消息法和读写外部文件法,第三种选择就是采用全局变量,但都不是太好,有没有更合适的方式保证实现该功能的同时不致使程序显得晦涩难懂不易修改和维护-Snake programming essentials
1, each scraper requires attention invalid rectangle the size and location of the smallest snakes in general to take the whole composition of coordinates and the largest rectangular coordinates (including the snake s head and body)
2, snake body running track running track should refer to the snakeheads
3, snakes eat things that all the points after the changes in the body should have a similar change in the first point, that is the first point change in the next period of time after the changes in the second point, and then the next time a change in the third point, and so on , until the end of the last point to change
4, fractional calculation variables: the snake to eat feces in general the number of snakes to eat large amount of feces, the game s difficulty level of
The formula: (number of normal feces feces+ large number of)* difficulty level
5, one problem: the difficulty of the game box and the main window to set options for data exchan
1、每次刷屏时需要注意无效矩形区的大小和位置,一般取整条蛇最小坐标和最大坐标组成的矩形(包括蛇的头和身体)
2、蛇全身的运行轨迹应该参照蛇头的运行轨迹
3、蛇吃下东西之后身体各点的变化情况应该参照第一点的变化,即第一点发生变化之后下一时间段第二点发生变化,再下一时间段第三点发生变化,依此类推,直到最后一点发生变化结束
4、分数的计算变量:蛇吃的一般屎数量、蛇吃大屎的数量、游戏的难度级别
计算公式:(一般屎数量+大屎数量)*难度级别
5、一个问题:游戏的难度设置选项框和主窗口发生数据交换采用了两种方法,发送消息法和读写外部文件法,第三种选择就是采用全局变量,但都不是太好,有没有更合适的方式保证实现该功能的同时不致使程序显得晦涩难懂不易修改和维护-Snake programming essentials
1, each scraper requires attention invalid rectangle the size and location of the smallest snakes in general to take the whole composition of coordinates and the largest rectangular coordinates (including the snake s head and body)
2, snake body running track running track should refer to the snakeheads
3, snakes eat things that all the points after the changes in the body should have a similar change in the first point, that is the first point change in the next period of time after the changes in the second point, and then the next time a change in the third point, and so on , until the end of the last point to change
4, fractional calculation variables: the snake to eat feces in general the number of snakes to eat large amount of feces, the game s difficulty level of
The formula: (number of normal feces feces+ large number of)* difficulty level
5, one problem: the difficulty of the game box and the main window to set options for data exchan
(系统自动生成,下载前可以参看下载内容)
下载文件列表
贪吃蛇
......\Begin.wav
......\BITMAP0.BMP
......\BITMAP1.BMP
......\BITMAP2.BMP
......\BITMAP3.BMP
......\BITMAP4.BMP
......\BITMAP5.BMP
......\BITMAP6.BMP
......\BITMAP7.BMP
......\BITMAP9.BMP
......\BMP1.BMP
......\BODY.ICO
......\BODY2.ICO
......\BODY3.ICO
......\Debug
......\GameOver.bmp
......\GAMEOVER.ICO
......\GameOver.wav
......\ICO00001.ICO
......\ICO00002.ICO
......\ICO00003.ICO
......\ICO00004.ICO
......\ICON1.ICO
......\ICON2.ICO
......\ICON3.ICO
......\ICONMAP0.ICO
......\ICONMAP1.ICO
......\ICONMAP2.ICO
......\ICONMAP3.ICO
......\ICONMAP4.ICO
......\ICONMAP5.ICO
......\ICONMAP6.ICO
......\ICONMAP7.ICO
......\ICONMAP8.ICO
......\ICONMAP9.ICO
......\Mario.ico
......\MARIOBRE.ICO
......\ME.BMP
......\MINE.H
......\Release
......\RESOURCE.H
......\SHEN.BMP
......\SHIT.ICO
......\SMALL.ICO
......\SNAKE.INI
......\StdAfx.cpp
......\StdAfx.h
......\WIN32.APS
......\WIN32.CPP
......\WIN32.DSP
......\WIN32.DSW
......\WIN32.H
......\WIN32.ICO
......\WIN32.NCB
......\Win32.opt
......\WIN32.PLG
......\WIN32.RC
......\WIN32.SLN
......\win32.vcproj
......\读我.txt
......\Begin.wav
......\BITMAP0.BMP
......\BITMAP1.BMP
......\BITMAP2.BMP
......\BITMAP3.BMP
......\BITMAP4.BMP
......\BITMAP5.BMP
......\BITMAP6.BMP
......\BITMAP7.BMP
......\BITMAP9.BMP
......\BMP1.BMP
......\BODY.ICO
......\BODY2.ICO
......\BODY3.ICO
......\Debug
......\GameOver.bmp
......\GAMEOVER.ICO
......\GameOver.wav
......\ICO00001.ICO
......\ICO00002.ICO
......\ICO00003.ICO
......\ICO00004.ICO
......\ICON1.ICO
......\ICON2.ICO
......\ICON3.ICO
......\ICONMAP0.ICO
......\ICONMAP1.ICO
......\ICONMAP2.ICO
......\ICONMAP3.ICO
......\ICONMAP4.ICO
......\ICONMAP5.ICO
......\ICONMAP6.ICO
......\ICONMAP7.ICO
......\ICONMAP8.ICO
......\ICONMAP9.ICO
......\Mario.ico
......\MARIOBRE.ICO
......\ME.BMP
......\MINE.H
......\Release
......\RESOURCE.H
......\SHEN.BMP
......\SHIT.ICO
......\SMALL.ICO
......\SNAKE.INI
......\StdAfx.cpp
......\StdAfx.h
......\WIN32.APS
......\WIN32.CPP
......\WIN32.DSP
......\WIN32.DSW
......\WIN32.H
......\WIN32.ICO
......\WIN32.NCB
......\Win32.opt
......\WIN32.PLG
......\WIN32.RC
......\WIN32.SLN
......\win32.vcproj
......\读我.txt