Self Study 4: A Maze Game
This week we were tasked to make our unity scene into a playable game by adding an enemy spawner, player health, and a win condition. However my unity scene was extremely buggy were even the slightest change/action in the editor took 45+ seconds. After several hours of trying to determine the cause, I eventually figured out that it was the maze causing the issues and thus I had to remake it from the ground up. This gave me a chance to make it a 13x13 maze instead of a 12x12.
Before:
After:
Remaking the maze took me around an hour but was worth it because otherwise I wouldn’t be able to use the scene. I then made a variant by turning off certain walls and getting rid of the back stairs and entrance, thus creating a maze where you have to reach the centre:
I then added a health script to the player, a UI health tracker. I also made it so you get a Loss message, and the player disappears if your health reaches 0. Then I made the enemies die when hitting the player and remove one of their health.
After getting that done I added red cubes to the end of most dead ends for the player as health packs. When collided with they disappear and give 5 health.
Now that I had the health control I needed to make it into a game by adding a yellow cube at the centre of the maze to make it the goal and a spawner that starts spawning enemies when you enter the maze.
GIF on 5x speed. (sorry for sloppy game play)
Get UTAS KIT207 Portfolio
UTAS KIT207 Portfolio
More posts
- Self Study 4: Game Ideas33 days ago
- Self Study 3: Terrain and Maze37 days ago
- Self Study 2: Character Animation46 days ago
- Self Study and tutorial 1 Barrel and Shrine of Remembrance54 days ago
Leave a comment
Log in with itch.io to leave a comment.