Awesome Open Source
Awesome Open Source


© Chen Shmilovich - 2018.

A Typescript remake is now available here.
Same functionality with better and more readable code.

Hello everyone!

The presented code is my first shot at building a javascript game.
It is a classic 8-ball pool game. You can choose to play against a friend, or against an AI, with various difficulty levels.

Have fun, and good luck!


* 'W' : Increase shot power.
* 'S' : Decrease shot power.
* 'Esc' : Return to main menu.


* Left click : shoot.
* Aim by moving the mouse.




* Building JavaScript Games by Arjan Egges (Apress, 2014):
* LAB.js :
* Music :
Bossa Antigua Kevin MacLeod (
Licensed under Creative Commons: By Attribution 3.0 License

Alternative Project Comparisons
Related Awesome Lists
Top Programming Languages

Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
Javascript (1,156,493
Html5 (275,666
Game (83,603
Ai (20,118
Physics (5,353
Genetic Algorithm (2,300
Scoreboard (995
Html5 Canvas (824
2d Game (741
Javascript Game (672
Collision Detection (499
Canvas2d (311
Canvas Game (259
Physics 2d (98
Ball (64
Billiards (28
Game Loop (28
Collision Handling (15
Snooker (12