No description, website, or topics provided.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


It does just what it says on the tin.. it's asteroidPong!

The game combines some of the funnest aspects of those classic 70's arcade >>>SMASH HITS<<< Asteroids and Pong!

produced by: Robert J Homewood

(Made with OpenFrameworks v0.9.4)



Instructions to Play

In order to play this game you will need an mobile device running TouchOSC (available here:

You will need to upload the custom layout (found in the TouchOSC_Layout folder of the repo) into your copy of TouchOSC. In order to do this you will need the TouchOSC Editor (available from the same website as above, just scroll down to the 'Downloads' section). From the editor you will need to open the layout file and then click the 'sync' button to upload it to your device.

On the device you will need to go to the layouts screen and tap 'add'. If your computer does not automatically show up in the list then you will just ned to manually add your computer's local network ip address (which can be found by typing 'ifconfig' into terminal and hunting around for the ip address) in iOS you can do this by tapping the edit button in the top right of the screen, followed by the '+' symbol on the top left.. (I had to do this each time).

Once the layout has been loaded and selected, just start the game on the computer and then move either the right hand slider to start a single player game, or the left hand slider to start a two player game.


  • Install ToucchOSC on a device
  • Install TouchOSC on your computer
  • Transfer the layout file to the device
  • Start the application and TouchOSC on the device
  • Move the Right Slider to start a single player game
  • Move the Left slider to start a two player game



The idea was to take two classic games that are fun, deconstruct them, and by combining them, see if I could increase how fun they are.


Originally released in 1972, Pong was the first commercially successful video game to be released. It featured two very low-fidelity characters, essentially just a rectangular block of pixels), called 'paddles' which the player could move along a vertical axis. A ball, once again simply small a blob of clustered pixels, would bounce between the left and right hand sides of the screen. The aim was to get the ball past the enemy paddle whilst deflecting the ball using your own. If the ball did manage to go past your paddle and exit the side of the screen, your opponent would be awarded a point and vice versa.

Asteroids, slightly more recent having been released in 1979, was also extremely successful. The game took place in space where the player took command of a small space ship surrounded by floating asteroids. The goal was to eliminate all of the asteroids by shooting at them however, each asteroid that got destroyed would break into smaller asteroid fragments which would start flying around screen swiftly creating a cacophony of hazards for the player to avoid.

Feature Blending

I chose to take the core gameplay from Pong because of its simplicity and because I thought that it would be a better experience, integrating elements from asteroids into the gameplay of Pong rather than the other way around. From Asteroids, I decided to take what I felt was the salient feature which was the collisions and breakdown of larger asteroids into smaller ones.

Control Interface

The blended game is controlled from an iOS device running a custom layout for the TouchOSC app. I tried several prototype layouts for this including rotary controls that closer resembled the original pong controls but felt that the sliders were simple and intuitive and ultimately led to a better experience. The game features 2 control sliders, one for each player, and a single 'release' button which is shared by the two players which launches the ball from the paddle. The controller also acts as part of the UI, displaying the player's score in real time.

Artificial Intelligence

As I wanted the game to be playable by both one or two players, I needed an agent to control the second player when there was only one human player. I went for a very simple system which defines a range around the ball's vertical position and then oscillates within this range using a noise function. It presents a somewhat easy challenge but exhibits some lifelike hesitancy and indecision which helps make the experience feel more organic. This is particularly highlighted by feeding the ai's movements back to the OSC controller.


My original idea was to go for a very colourful game with lots of strange effects and interesting colours. I decided however to rather go for a more original look that was in line with the capabilities of 70’s computer hardware. As such the game is monochromatic, featuring solid objects for the Pong elements and wireframe white objects for the Asteroids elements of the game, both in accordance with their original games.


Like the visual quality, I chose to go for a very low-fidelity solution, locating 8-bit sounds and music to go with the game. Although both original games most likely only featured a mono soundtrack, I stereo sseparated all of the sounds in the game (based on their location on the screen) to increase the player's feeling of immersion.


Although more user testing, tuning, bug fixes and a few more features could really make this game shine, I still feel that it is quite fun to play and it has achieved its goal.


All of the code written was by myself however a few lines of code were based on examples found in the ofBook and our lecture series but never copied/pasted directly. Music and sound for the game were sourced online from creative commons sources and are listed per sound file in the code.