Skip to content

zzhbrr/SnakeBattle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 

Repository files navigation

SnakeBattle

A snakebattle game develpoed by Qt5.

Based on this project to adapt and reconstruct.

Thanks for your inspiration.

~Optimize the architecture of the game and the graph of the game.

~Add some new useful functions and modify some settings to make the game more playable.

~Optimize the algorithm of AI snake. It seems that they will never dead unless some items appears suddenly before them.

But the game still has the problem of memory leak.

usage

Open SnakeBattle.pro with QtCreator.

Compile and run.

Or just run SnakeBattle.exe in SnakeBattle_installpackage .

Screen capture

image

image

image


基于Qt5开发的贪吃蛇大作战小游戏

基于这个项目进行改编和重构。

谢谢你提供的灵感。

~优化了游戏的体系结构和游戏图画。

~增加了一些功能并更改了一些设定,以使游戏更具可玩性。

~优化了Ai蛇的算法,它们只有在脑袋前面突然出现石头或其他蛇的时候才会死掉。(这好像破坏了游戏的平衡性)

但游戏还有内存泄露的问题没有解决。

用QtCreator打开 SnakeBattle.pro 并编译运行。

或者直接打开安装包中的 SnakeBattle.exe

About

A snakebattle game develpoed by Qt.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published