Code Monkey home page Code Monkey logo

python_snake's Introduction

貪吃蛇遊戲

簡介

使用tkinter手刻出來的貪吃蛇遊戲,除了耳熟能詳的基本規則之外,還添加了特殊規則――收集果實除了會增長自己的身體,還會有一定的機率觸發各式正面及負面效果,增加遊戲的趣味性。

特殊規則

正面永久效果 描述
萎縮 減少1長度,若長度小於2不發動
豐收 增加1果實生成量
護身符 允許失敗一次,保留分數並重置,上限為3
負面永久效果 描述
萎縮 減少1長度,若長度小於2不發動
豐收 增加1果實生成量
護身符 允許失敗一次,保留分數並重置,上限為3
正面暫時效果 描述
緩速 速度降低三分之一
磁鐵 能吃到距離頭一圈範圍的果實
尖頭 能破壞碰到頭的石頭
大豐收 產生目前生成量的兩倍果實,期間內只會發動永久效果
幸運 期間內只發動正面效果
負面暫時效果 描述
爆發成長 固定尾巴,拖成兩倍長度後開始計算時間
加速 速度加快三分之一
方向喪失 控制鍵上下顛倒,左右相反
大歉收 目前生成量減半,期間內只會發動負面效果
厄運 期間內只發動負面效果

分工事項

  • 林庭毅:遊戲介面、移動的事件處理、死亡判定與特殊規則擬定
  • 黃竑睿:特殊規則實作

遊戲畫面

image

python_snake's People

Contributors

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