GithubHelp home page GithubHelp logo

snakebattle's Introduction

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

snakebattle's People

Contributors

zzhbrr avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.