Today we got a task to come up with an idea to do with the word “Prevent“, prevent means “keep (something) from happening”.
I created this code inspired by the game called Pong game.The game was released in 29 November 1972 designed by a man called Allan Alcorn. This inspired me to try and create something similar to this because the game ‘pong’ used to be the best PC game to play when I was younger and I wanted to bring a similar memory back.

Pong is a two dimensional sports game that simulates table tennis. The player controls an in-game paddle by moving it vertically across the left or right side of the screen. You can compete against another player controlling a second paddle on the opposing side. Players use the paddles to hit a ball back and forth. The goal is for each player to reach eleven points before the opponent, points are earned when one fails to return the ball to the other.


This is my code after a lot of research and ideas, I wanted the text to go right then comes back to the left, to make it similar to game ‘pong’.

When running the code this is what it looks like, I got the two blocks to stop the ball but I turned the ball into the word prevent, so I’ve made the text go right to left.


The colors I’ve chosen for the code are blue and white, the reason I chosen blue is because its my favorite color and white it stands out well with the blue and makes it easier for people the read and understand.
After doing a little more research on the game I decided to add the name at the top of the page on the code when running it and made the text green, I chosen green because it stands out in a different way to the other colors.
I added the game name ‘Pong Game’ to make it less dole and empty,so there’s a little bit more to it.

After more thinking and a little more research I decided to add some more text at the bottom of the game but made the text solid not movable. 
I hope this code and idea can inspire other people to recreate a memory and design a code to the memory.
Leave a comment