One Button Game

This is the first game that I made within a two person team. The goal of this project was to create a game which could be played with only one button. I was responsible for creating and designing the player, along with the gun shooting mechanics. I was also tasked with developing the art for the game.

  • Game Theme

    This project was inspired by space invaders, however the mechanics are slightly different, instead of the player’s gun moving left to right in a flat motion, it instead rotates around a fixed point, using a single button to fire.

    Mechanics

    The theme of the game is bird hunting, where the player trys to aim and hit the birds that are flying on and off the screen at random intervals. The player does not have control over where the gun is aiming as it is automatically bouncing back and forth. The player only has control over firing the gun, this is the ‘one button’ element of the game. The aim is to shoot the gun when it is in line with a bird and get points in a set time limit, depending on how many birds were hit.

  • Movement

    When I started this project I learnt how to move objects in Unity. As this was my first time doing a task like this, I did not program it from scratch, instead I found 2 lines of code that rotated an object on stack overflow. However, I had to adjust these lines of code as they did not rotate the object in the correct way. As a result, I was able to successfully create the code that was used in the final game:

  • Shooting

    Unity was used to rotate objects and then to fire bullets from the gun. This was tricky as it required a second object. This second object was the bullet. I was able to use code to spawn the bullets, which was successful. I learnt the importance of implementing an IF statement that only allowed one bullet to spawn when the left click was pressed, thus preventing a constant line of bullets.

  • Art

    The art style for the game was created using a number of pixel art assets located on the internet that were all free to use and uncopyrighted. These images were then slightly edited in photoshop, to make them fit the task. Backgrounds were removed from the bullets and the scene for the game created by using many different images. Below is the completed scene along with the gun and bullet assets.