Skip to content

SafalPandey/js-table-tennis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Table Tennis 3D (js-table-tennis)

Read The Related Blog Here

To play online

Try it Here!!!

How to play

On PC:

Move Mouse around the screen to move the bat and flick the mouse to hit the ball.

On Mobile:
Move Finger around the screen to move the bat and flick finger to hit the ball.

Make sure you press Add to homescreen to use the game as an app.

Press options on your mobile browser
Add to homescreen

That's it! All rules are the same as a real table tennis game.

To try it locally

Clone the repo to your desired directory

git clone https://github.com/SafalPandey/js-table-tennis.git

Navigate to the directory

cd js-table-tennis

Install the dependencies

npm install

You need to have npm installed for this to work.

Build the code using webpack

npm run build

Open "index.html" in your favorite browser

Enjoy :D

To experiment with the code:

Go to js/ directory and make changes to any file. Save and reload.

Happy Coding!

Releases

No releases published

Packages

No packages published