项目作者: yaochenkun
项目描述 :
A simple Gluttonous Snake game implemented with graphics library EasyX in C.一个基于EasyX图形库与C语言的贪吃蛇游戏。
高级语言: C++
项目地址: git://github.com/yaochenkun/gluttonous-snake-game.git
GluttonousSnakeGame
A simple Gluttonous Snake game implemented with graphics library EasyX in C.
Screenshot


Download and Run
Just dowanload and open 贪吃蛇.exe
Environment and Configurations
- Download and install VC++6.0.
- Download and install EasyX库 2012立冬版. (If you cannot visit the download link, this repository has also provided the installation package, and you can just download from here.)
- Compile the source code file ‘xxx.cpp’ by VC, and then you can run and play the game.
Key Points
- Design a linked list to store the coordinate of snake’s body node.
- Recognize the direction (up,down,left and right) of snake and decide the snake’s head coordinate.
- Implement the animation of snake’s moving.