Giter Site home page Giter Site logo

pong's Introduction

Pong

一、控制:

上下:控制板子高度 c鍵:減速 x鍵:加速

二、特點:

發球會隨機選擇一邊

當球打到板子 板子被打到的那面會變成紅色

當球打到板子中間約1/3的部份時會加速 而且中間的部份會變成黃色的並且出現SPEED UP!的字樣

加入c鍵(減速)和x鍵(加速) 使得玩家在初期可以利用減速更精準的打到加速點 在後期也可以用x鍵避免掉板子移動速度不夠的問題 讓玩家與AI的勝率更平衡

AI的部份被改成當球超過了界線才會開始做判斷 讓玩家有勝利的機會

當玩家或是電腦沒有接到球的時候 會在各自的上方出現FAIL ><的字樣

pong's People

Contributors

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