Giter VIP home page Giter VIP logo

snakemaster's Introduction

此遊戲使用 Python pygame 開發
遊戲影片:https://youtu.be/337SSRAwbiA

待修復的Bug

GameOver 時,若蛇的長度到一定長度,會造成爆炸動畫當機

遊戲規則

過關條件:無,能撐多久就撐多久
失敗條件:蛇超出遊戲畫面
詳細規則:
1. 蛇不能朝向反方向移動
2. 吃掉一個食物會生成另一個食物,速度和長度+1
3. 一個食物的初始分數是 10 分
4. 每吃 10 個食物後,食物的分數會+10,且會換一張地圖
5. 不小心吃到蛇的身體,該位置到尾部會全部消失
6. GameOver 時蛇會爆炸,且每炸 1 單位都會加分
7. 背包最多同時儲存 3 個道具
8. 道具方塊(黃色問號)與事件方塊(紅色問號)每吃掉 1 食物即有機率生成
9. 道具方塊(黃色問號)在地圖上同時只會存在 1 個
10. 事件方塊(紅色問號)在地圖上同時可以存在多個

道具

BlackHole:短時間內,蛇可無限穿越地圖
Gamble:獲得大量分數(高機率)或立刻 GameOver(低機率)
Brake:大幅降低速度
FruitBasket:地圖會噴出大量食物,吃掉可增加長度和分數,但不會增加速度

事件

SpeedUp:小幅提升速度
SpeedDown:小幅降低速度
AddScore:獲得中量分數
LoseScore:失去中量分數
GoldSnake:召喚一條黃金蛇,短時間內出現在地圖上,碰到牠的身體即可獲得分數
BoneSnake:召喚一條骷髏蛇,短時間內出現在地圖上,若骷髏蛇頭碰到玩家蛇會被扣除分數
Reverse:令蛇頭尾反轉,並朝向反轉前尾部的方向前進

操作說明

[w s a d ↑ ↓ ← →] 移動蛇
[space] 使用道具
[esc] 關閉視窗

snakemaster's People

Contributors

jamsonchan 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.