top of page

Player Animations 

By accessing the "assets" folder, and then clicking the folder containing the models, you are able to get access to the character's movements; animations, to be more specific. The animations for the Player are: death, idle, and move. By adding conditions to these animations, you are able to dictate when and if the designated animations will take place.  

Opening Unity and setting the scene ("environment"), we're ready to introduce our Player. As a class, we have access to a prefabs folder containing our models (enemies) and effects (hit particles, lights, etc.) We simply drag the Player into the scene, and from here we'll need to apply its designated animations and conditions. 

Bad Dreams Video Game 

Zombunny Animations 

With that done (enemy scripts and animations) you are able to add another enemy to your game. In total, there are 3 enemies: zombunny, zombear, and hellephant. This enemy, the zombear, is nearly identical to the zombunny in that it has the same script and animation applied to it. What makes this enemy unique is the "light" attached to it, allowing it to have an eerie luminescent glow while in game. 

The next enemy integrated into our game, the hellephant, is unique in that it has its own animator. This enemy is meant to be a tank in the game, which means it'll be able to take more hits than a zombear or zombunny

In order to get our enemies to spawn, we need to manually set up the spawn points within the scene. The enemy manager helps with the task of setting up the spawn points, while also allowing us to manipulate the actions of each enemy. To be able to do this, we needed an "EnemyManager" script. Then after applying this crucial script, we're able to apply their corresponding animators and scripts to the managers as well. 

Now, we were able to add a working score text with the proper scripting/components. We only had limited space for the score, so we had to make sure that the score wouldn't get too high. With each enemy we kill, the score gradually gets higher. 

After setting all the enemies up correctly, we added the Game Over script. After you die in the game, a screen should appear that says "game over" and it should display your score as well. Now we're ready to build the game!

Building the Game 

* To play the full game, simply click on the picture below (make sure to use either Firefox or Internet Explorer) 

bottom of page