Inspiration

The inspiration for My Table Tennis Game came from the love of creating video games through code. I aimed to recreate the excitement and dynamics of a table tennis match in a digital format, allowing players to enjoy the sport virtually.

What it does

Players can enjoy an authentic and captivating table tennis experience with this game. Using their paddle, players can control the trajectory of a bouncing ball as it moves around the table in competition the AI opponent.

How we built it

The game was built using the Code.org platform, It mainly runs on JavaScript. The main components include a ball, paddles for both the player and computer, scoring mechanisms, and collision detection for realistic ball movement. The interactive elements were implemented with drawing and group features in code.org.

Challenges we I into

I initially built the game to be 2 players, but I realized how inconvenient it would be you have to find another person to play with. So I then added the computer mallet but I didn't make it as hard at first because I thought it was gonna be no fun. Then I decided to experiment with it and aligned the x position of the striker to the computer mallet, it was then super hard, but it was also possible to get a few goals against the computer if you do try for a while, and I found that relaxing.

What we learned

I learned how to balance gameplay elements to create a challenging yet enjoyable experience for players. And that a good game doesn't alway have to be easy, it's about getting past these obstacles that make these games exciting.

Built With

Share this project:

Updates