登录
首页 » c++ » 贪吃蛇小游戏

贪吃蛇小游戏

于 2022-01-26 发布 文件大小:11.71 MB
0 50
下载积分: 2 下载次数: 1

代码说明:

贪吃蛇是经典的小游戏,一条蛇在一个封闭的矩形围墙走动,通过wsad四个键控制蛇上下左右运动,去吃在围墙内产生的随即位置的果实。吃到食物的同时,增加当前速度乘以十的分数,蛇的长度同时增长一节。接下来再次产生食物,吃十个果实之后,速度增长一,蛇在移动过程中撞到自己或者围墙,则游戏结束

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论


0 个回复

  • GetXSL
    一个基于MFC操作excel表格的应用程序。根据需求生成一张刻度与数据对应的excel表(MFC-based operation excel spreadsheet application. Excel sheet with a scale corresponding to the data generated on demand)
    2013-11-25 21:19:54下载
    积分:1
  • C-program-of-BSS-and-examples-2
    在linux平台下,纯c写的盲信号分离的代码.它采用基于卷积混合的盲信号分离算法,不但可以分离人工合成的混合信号,而且对于真实环境中的卷积混合的语音信号也能够分离.在本程序中,包含了两个测试文件,makefile后便可以直接使用. 另外值得一提的是,压缩包里包含有一些语音处理方面的常用函数.例如fft变换,读取写入wav文件,以及一些常用的一维向量和二维矩阵变换的函数.这些可以直接应用在其他应用程序里去.(Linux platform, the blind signal separation of pure c write code. Blind signal separation algorithm based on convolution mixed, can be separated not only synthetic mixed-signal and voice signal convolution mixed in real environment can separation in the program, contains two test files can directly use the makefile after. Also worth mentioning is that the compressed bundle includes voice processing commonly used functions such as fft transform read write wav file, as well as some of the commonly used one-dimensional vector and two-dimensional matrix transform function. these can be applied directly into other applications.)
    2012-10-26 20:45:12下载
    积分:1
  • LCD28X64
    关于液晶12864protues仿真和液晶的详细资料,对于学习是很有帮助的,特别是手上没有液晶的人。(12864protues on LCD simulation and detailed information on the LCD, learning is very helpful, especially LCD is not the hands of people.)
    2007-03-02 23:02:20下载
    积分:1
  • scren-pic
    用C#开发屏幕截图的源代码,只有源码,不含工程文件(C# development screenshot of the source code, only the source code, project file does not contain)
    2013-08-07 16:02:43下载
    积分:1
  • pmsm3_2
    说明:  本程序来自TI公司网站原程序,其功能是通过传统的矢量控制算法来实现对永磁同步电机的控制,矢量控制采用双闭环结构,内环为电流环,外环为速度环,其速度的获得是靠滑模自适应算法求得。是一个不可多得无速度传感器矢量控制例程。控制程序可以采用.asm也可以采用.C。程序的具体算法和介绍在软件压缩包有详细介绍! (this program from the company's Web site TI program, its function is through the traditional vector control algorithm to achieve the permanent magnet synchronous motor control, vector control double-loop structure for the inner loop current loop, velocity loop to the outer ring, the speed was on sliding mode is obtained adaptive algorithm. It is a rare speed sensorless vector control routines. Control procedures can be taken. Asm also be used. C. The specific procedures and the introduction of the algorithm compression software packages are described in detail!)
    2006-01-03 00:39:18下载
    积分:1
  • wenjianweihuyingyong
    说明:  文件维护应用程序(包括文件的拷贝,改名,删除等)(file maintenance applications (including copy paper, renamed, deleted, etc.))
    2006-03-14 14:55:55下载
    积分:1
  • Image-translation
    实现图像的平移 可实现左移 右移 并根据需要改变参数(Image translation)
    2012-05-21 17:09:08下载
    积分:1
  • Computer Graphics experimental guide e
    计算机图形学实验指导的电子书,内容比较详细-Computer Graphics experimental guide e-book, in great detail
    2022-05-01 01:10:16下载
    积分:1
  • GPS_MFC_WP1
    本人编制的GPS的数据解析代码,其中包括对五种NMEA协议的解析(I compiled the code of GPS data analysis, including analysis on five NMEA protocol)
    2011-07-10 15:09:41下载
    积分:1
  • BYTLCD__RTC
    使用STM32的RTC,然后显示在液晶屏上。(Use the STM32 the RTC, and then displayed on the LCD screen on.)
    2013-02-06 23:24:47下载
    积分:1
  • 696518资源总数
  • 104432会员总数
  • 16今日下载