The Project
For this project we started with an already existing "game" Micro FPS made by Unity.
We then expanded upon that project by adding our own level, mechanics and puzzles.
Interaction System.
I created an interaction system for the player with which other objects could easily be made to do things.
The user can interact with different objects in front of them by pressing a button.
Savable States
We needed a system for respawning, so I decided to create one.
Player states can be saved as a checkedpoint by other objects, and states of other objects can also be saved.
When a level is loaded (or reloaded when the player dies) the system looks for saved states for objects or the player, and applies them.
Enemy Spawner
The enemies in the seconds part of the level are (mostly) spawned in when you play.
I created a script to spawn them in, and gave it locations to spawn them on.
The script tries to spawn the enemies on a location that the player cannot see.