2D Racing Game Series in Unity: Volume 3
In volume 3 of the 2D Racing Game Series in Unity, we'll be working on creating the core gameplay functionality for the power ups. Software required: Unity 4.2.
What you'll learn
In volume 3 of the 2D Racing Game Series in Unity, we'll be working on creating the core gameplay functionality for the power ups. We'll get started by creating boundaries for the level to keep the player from leaving the game area. Then we'll begin scripting the functionality of our powerups. We'll learn how to properly assemble these prefabs and how to instantiate them when the player presses a specific button. Then we'll begin working on the projectile functionality where it will fly through space and destroy itself when it collides with any object or when it's lifespan is exceeded. After that, we'll take what we've learned and apply it to the trap and boost functionality. Once the powerups have been assembled, we'll learn how to make each one affect the player in their own way. Software required: Unity 4.2.
Table of contents
- Dressing the Level 12m
- Creating the Level Boundaries 7m
- Spawning and Respawning 10m
- Building the Powerup System 9m
- Creating Player Properties 11m
- Syncing the Powerups with the Player Properties 9m
- Setting up the Projectile Prefab 9m
- Instantiating the Powerup Game Objects 7m
- Creating the Projectile Behavior 9m
- Creating the Trap and Boost Behavior 12m
- Applying Boost to the Car Movement 15m
- Applying Damage 11m
- Reflecting Damage in the GUI 10m