Skip to content

Rebound game built with Vanilla JS. Categorized into 3 difficulty levels eg: Easy, Medium, Hard. Speed of the ball increases when colliding with the edge of the paddle while game is over when ball misses the paddle and hits the ground.

Notifications You must be signed in to change notification settings

jordan1908-gif/Rebounce-Game-Development

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rebounce-Game-Development

This rebound game is solely built with Vanilla JavaScript. User is able to choose the difficulty levels which are categorised into Easy, Medium and Difficult. Users may also turn on the sound effects for a more pleasant user experience. The speed of the ball increases when it collides with the edge of the paddle to increase the difficulty. Game is over when ball touches the ground or misses the paddle. The paddle can be controlled by using both keyboard and mouse =)

Learning Objectives

• Creating game elements with HTML.
• Defining conditions with CSS.
• Defining objects with JavaScript.
• Creating replacement animation with JavaScript.
• Animating objects with formulas.
• Simulating boundary collisions.
• Handling keyboard events.
• Rendering game objects on screen.
• Detecting collisions.
• Managing difficulties.
• Adding event listeners for mobile events
• Testing the game on mobile emulators.
• Playing sound effects and music.
• Adding game controls and deploying the game.

Getting Started

  1. Download the source code.
  2. Run rebound.html.
  3. Enjoy! 😃

Demos and Screenshot


Gameplay

gif

Settings Panel

img

About

Rebound game built with Vanilla JS. Categorized into 3 difficulty levels eg: Easy, Medium, Hard. Speed of the ball increases when colliding with the edge of the paddle while game is over when ball misses the paddle and hits the ground.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published