yaochenkun / gluttonous-snake-game

A simple Gluttonous Snake game implemented with graphics library EasyX in C.一个基于EasyX图形库与C语言的贪吃蛇游戏。

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

A simple Gluttonous Snake game implemented with graphics library EasyX in C.一个基于EasyX图形库与C语言的贪吃蛇游戏。


Languages

Language:C++ 100.0%