Navigation Menu

Skip to content

nikitalarionov/js_pong_writen_in_two_hours

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

js-pong

Canvas 2D Ping-pong, two players.

How to use, open html, use W, S - to move first pad Up, Down.

Take your friend to computer and give him mouse to control second pad.

First Commit:

  • Added sound (new round, padle collision)
  • Added Collision Detection (Simple - need to rework).
  • Added Round functional, startscreen
  • Added controls (W, S - for first padle, mousemove for second).

Need to fix:

  • Smooth moving for first padle with W, S keys.
  • Good Collision Detection.
  • Vector ball optimizations.
  • Fix score update function.
  • Width, height for all objects will be equal window size.

License BSD

Author: Nikita Larionov (tolarionov@gmail.com).

About

Canvas 2D Ping-pong, two players.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published