Coder Social home page Coder Social logo

ball-game's Introduction

Ball-Game

ball game to play

Game player: Only one Game world:Ball,obstacles Glay goal:Click the screen to block the ball Game rules:Firstly,there is a keyball in the middle,when you click the screen,there will be a block to create to surround the ball,as the same time,the ball will move.Try to create block balls to surround the keyball. Win and Lose:If the ball move to the edge,you lose.If you surround the keyball,you win.

游戏开始时会产生一个红球和10个阻塞的黑球。当你点击屏幕,就会生成一个阻塞的球,同时红球会向边缘移动一步,当红球到达边缘时,你就输了,当你围住这个红球时,你就赢了。

游戏文件介绍:是用android studio写的一个游戏,生成了一个apk文件,可以下载安装。surroundtheballProject.zip就是这个全部文件了。 Dot是球的类,里面包括了球的状态信息和球的位置信息。StartToPlay类是球的逻辑信息,包括红球的自动移动策略和点击生成障碍等,绘图也是在这里进行的。

ball-game's People

Contributors

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