You are browsing as a guest. Sign up (or log in) to start making projects!

2h 5m 59s logged

NeoCade Devlog #1: Intro and implemented pong game

The aim of this project is to create an arcade website with many arcade games available to play in your own browser. Here are the changes i made in this session

Change 1:

I set up my environment on vscode and set up a github repo. This didn’t take too long

Change 2:

I coded a full pong game into the website. THis is just the initial stages and i just wanted to start somewhere. The pong game is a singleplayer game (for now) where you play against a computer and there’s a scoreboard tracking your scores. It wasn’t too challenging except perhaps coding the computer engine to play against you but I managed to figure that out. Here is how i built the computer that plays against you:

I wrote a simple engine that tracks the ball’s Y-coordinate. If the ball is above the paddle, the paddle moves up; if it’s below, it moves down. But there was a problem, if the paddle could keep up with the ball, it would never lose so i made it such that the speed of the ball is slightly higher than that of the paddle, meaning it is still possible for it to lose.

Next steps:

Since pong is finished and is playable, my next goal is building the actual NeoCade ui and adding this game into the menu

1
16

Comments 1

@Shreyansh

I remember I made a ping pong game in python as one of my first projects, So cool