文件名称:c++贪食蛇
介绍说明--下载内容来自于网络,使用问题请自行百度
程序关键在于表示蛇的图形及蛇的移动。用一个小矩形块表示蛇的一节身体,身体每长一节,增加一个矩形块,蛇头用一节表示。移动时必须从蛇头开始,所以蛇不能向相反的方向移动,如果不按任意键,蛇自行在当前方向上前移,但按下有效方向键后,蛇头朝着该方向移动,一步移动一节身体,所以按下有效方向键后,先确定蛇头的位置,而后蛇的身体随蛇头移动,图形的实现是从蛇头新位置开始画出蛇。食物的出现与消失也是画矩形块和覆盖矩形块。为了便于理解,定义两个结构体:食物与蛇。(The key to the program is to represent snake patterns and snake movements. With a small rectangular block that snake section body, the body of each long section, a rectangular block, with a snake said. When moving from the head must be started, so the snake not moving in the opposite direction, if you do not press any key in the current direction, the snake to move forward, but effective press the key, head towards the direction of movement, a move a body, so effective press the key, first determine the head position. Then the snake's body with the head movement, realize graphics from the new position began to draw a snake. The appearance and disappearance of food are also painted rectangular blocks and covered rectangular blocks. For understanding, two structures are defined: Food and snakes.)
相关搜索: 贪吃蛇
(系统自动生成,下载前可以参看下载内容)
下载文件列表
c++贪食蛇\1\C++贪吃蛇cpp源代码终极版.txt
c++贪食蛇\1\main.cpp
c++贪食蛇\1\main.o
c++贪食蛇\1\Makefile.win
c++贪食蛇\1\工程1.dev
c++贪食蛇\1\工程1.exe
c++贪食蛇\1\工程1.layout
c++贪食蛇\2\main.cpp
c++贪食蛇\2\main.o
c++贪食蛇\2\main2.cpp
c++贪食蛇\2\main2.o
c++贪食蛇\2\Makefile.win
c++贪食蛇\2\工程3.dev
c++贪食蛇\2\工程3.exe
c++贪食蛇\2\工程3.layout
c++贪食蛇\3\main.cpp
c++贪食蛇\3\main.o
c++贪食蛇\3\Makefile.win
c++贪食蛇\3\工程1.dev
c++贪食蛇\3\工程1.exe
c++贪食蛇\graphics.h
c++贪食蛇\libbgi.a
c++贪食蛇\一.docx
c++贪食蛇\贪食蛇c++源文件.doc
c++贪食蛇\1
c++贪食蛇\2
c++贪食蛇\3
c++贪食蛇
c++贪食蛇\1\main.cpp
c++贪食蛇\1\main.o
c++贪食蛇\1\Makefile.win
c++贪食蛇\1\工程1.dev
c++贪食蛇\1\工程1.exe
c++贪食蛇\1\工程1.layout
c++贪食蛇\2\main.cpp
c++贪食蛇\2\main.o
c++贪食蛇\2\main2.cpp
c++贪食蛇\2\main2.o
c++贪食蛇\2\Makefile.win
c++贪食蛇\2\工程3.dev
c++贪食蛇\2\工程3.exe
c++贪食蛇\2\工程3.layout
c++贪食蛇\3\main.cpp
c++贪食蛇\3\main.o
c++贪食蛇\3\Makefile.win
c++贪食蛇\3\工程1.dev
c++贪食蛇\3\工程1.exe
c++贪食蛇\graphics.h
c++贪食蛇\libbgi.a
c++贪食蛇\一.docx
c++贪食蛇\贪食蛇c++源文件.doc
c++贪食蛇\1
c++贪食蛇\2
c++贪食蛇\3
c++贪食蛇
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.