Skip to content

Run-ux/Snake-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

使用EGE和DEV C++编写的贪吃蛇小游戏,运用面向对象的编程方法

Snake games written in EGE and Dev C++

  • EGE版本:19.01
    EGE version: 19.01

  • DEV C++版本:5.11
    DEV C++ version: 5.11

文件说明

  • 主程序代码snake.cpp
    The main program code is in snake.cpp.

  • 蛇类封装Snake.h
    The snake class is encapsulated in Snake.h.

  • 按钮类封装Btn.h
    The button class is encapsulated in Btn.h.

  • 障碍物、食物和速度剂封装Item.h
    The obstacles, food, and speed agents are packaged in Item.h.

  • 地图、蛇头蛇身、障碍物、速度剂素材:存放在文件夹resource
    Pictures including map, snake body, obstacles, and speed agent are in the folder resource.

游戏图片game

游戏图片game

About

使用EGE和DEV C++编写的贪吃蛇小游戏

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages