cyrildewit / java-game-assignment-pong Goto Github PK
View Code? Open in Web Editor NEWReplication of Pong in Java
Replication of Pong in Java
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.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.EntityType
. 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.
Ball
entity touches a Goal
entity, a point should be given to the player who scored.PlayerScore
entity should print the score on the screen.PlayerScore
entity should be 'Bitfont'Ball
entity should be respawned when a goal has been made.Ball
has been respawned, it should move in a random direction to the other side of the player who made the point.Paddle
entity should be a little bit faster.A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.