Skip to content

☄️ A simple pen that fires a new ball for each click. Bounces off the floor and wall until eventually stationary. Fully responsive. Built with JavaScript.

Notifications You must be signed in to change notification settings

reeshul/BouncingBalls

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UPDATE - Oct 2021: Please note this will not run in iOS or Safari on macOS as private class methods are not yet supported.

Bouncing Balls

Individual tech test.

Task

Create a bouncable ball which is fired from the position of a mouse click. Solution must handle multiple balls being fired and bouncing at the same time. Bonus points if responsive.

Objective

Using OO design skills complete the task and ensure the code is well structured, extensible, testable, readable, commented etc.

Technologies used

HTML, CSS, JS. 🎨

How to use

Download repo and open index.html

  1. Clone repo git clone https://github.com/reeshul/bouncingballs
  2. Change directory cd bouncingballs
  3. Open index.html open -a "Google Chrome" index.html

The solution can also be found on codepen here.

About

☄️ A simple pen that fires a new ball for each click. Bounces off the floor and wall until eventually stationary. Fully responsive. Built with JavaScript.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published