Coder Social home page Coder Social logo

java-game-assignment-pong's People

Contributors

cyrildewit avatar

Stargazers

 avatar

Watchers

 avatar

java-game-assignment-pong's Issues

Roadmap v1.0.0-alpha

Specification

  • The game must consist of the following entities: Paddle, Ball, Wall, Goal and Net. They don't have to interact with eachother (collision handling or offscreen blocking) and their appearance should look good. It should also be located at the right location.
  • The KeyManager class should be renamed to Input and it should take care of other events as well like mouse buttons, mouse wheel and mouse movement.
  • The ID enum class should be refactored into EntityType.

Roadmap v1.0.0-alpha.2

Specification

  • The Paddle entity should move up or down based on keyboard input. The left paddle should be controlled using W and S and the right paddle should be controlled using UP and DOWN.

  • The Paddle entity shouldn't go higher or lower than the canvas itself. This can be achieved by checking for a collision with a Wall entity.

  • The Ball entity should bounce when it collides with a Wall entity.

  • The Ball entity should bounce when it collides with a Paddle entity.

  • When Ball entity collides with a Goal entity, a message should be printed in the console.

  • The Ball entity should move in a random direction.

Roadmap v1.0.0-alpha.3

Specification

  • When the Ball entity touches a Goal entity, a point should be given to the player who scored.
  • The PlayerScore entity should print the score on the screen.
  • The font of the PlayerScore entity should be 'Bitfont'
  • The Ball entity should be respawned when a goal has been made.
  • After the Ball has been respawned, it should move in a random direction to the other side of the player who made the point.
  • The speed of the Paddle entity should be a little bit faster.
  • The player who last scored shouldn't receive the ball as first.
  • After one player scored 11 points, the game should be stopped.

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.