2D Racing Game Series in Unity: Volume 1
In the first volume of the 2D Racing Game Series in Unity, we'll be covering how to begin prototyping our 2d racing game. Software required: Unity 4.2.
What you'll learn
In the first volume of the 2D Racing Game Series in Unity, we'll be covering how to begin prototyping our 2d racing game. We'll begin the series by setting up our project and importing the essential files we need to get prototyping faster. Then we'll learn how to create the track prefab and how we can use it to set up a simple race track. Once the track is built, we will create the player prefab and jump right into scripting. We'll begin with scripting the player's movement and discussing how to get the exact behavior we want. Once we have the basic movement functionality, we'll dig a little deeper by seeing how we can use velocity to create a different driving experience. Then we'll finish this volume by working on the Sprite Animation script. Here we will create a flexible system that will offset and scale our sprite sheet, resulting in a fully animated sprite. Software required: Unity 4.2.
Table of contents
- Setting up the Project 9m
- Building the Race Track 9m
- Adding Track Detail 11m
- Creating the Player Prefab 4m
- Scripting Player Movement 10m
- Refining the Player Movement 8m
- Adding Velocity Functionality 9m
- Finishing the Player Movement Script 6m
- Starting the Sprite Animation Script 9m
- Adding Time and Animation Frames 13m
- Finishing the Base Sprite Animation Functionality 11m
- Tying the Animations to Player Input 16m
- Setting up Non-looping Animations 15m