Game Programming

What game programming looks like.

In computer science we were told to to build a pong game entirely from scratch, using Scratch (pun intended).

The first the we learned to program was a simple loop in scratch.



After we succesfuly proved our Scratch skills to Mr. Farrell, we were given the task of creating a replica of Pong within Scratch!


The Paddles were made using simple button maps in Scratch and to keep them from going of screen I set a command for it to bounce off if it touched the edge. When the flag is triggered the paddles go to their default placements. The "forever if" statement keeps the paddles moving at a constant 10 steps as long as the button is held down. This allows for a smooth glide just like regular pong.


The Ball was what held most of the game together. It kept track of the score, kept the game moving, and was in charge for starting and stopping the game. When the flag is triggered the ball resets to 0,0 and points in a random direction. After three seconds the ball launches. The ball also goes at a constant 10 steps. The way it keeps score is by telling the ball that when it hits the left or right wall, it should give points to the corresponding team.




Index | Circuits | Server | Programming | Robotics | Game Programming | 3D Programming