You are on page 1of 22

Paper Code – 501 and 591

Project – Racing Game 3D


Name: Rivek Raj Tamang
Course: BSc in Gaming (5th Sem)
Roll No:28955020010
 Introduction
 Abstract
 Programming and Logic

Contents  Assets
 Screenshots of the game
 Role in the project
 Conclusion & Future Work
Introduction

This project consist of a Race Game which is based in third dimension


(3D) and created in Unity Engine 3D.

Where a player can control the car and race with an enemy car which
moves automatically to finish the racetrack.

The assets and materials are used and created to make the game look
more attractive.
Abstract

There are two racetracks in an environment where two


cars race each other.

A player who can control the car and an enemy car which
moves automatically to finish the racetrack.

The cars are stopped after the track is completed.


Making The Game
To create the game open
Unity Engine, Select 3D ,
name the project and set the
location for the game.
Build Settings
Make sure to set the build settings first, switching
platform to Android as this project is based on
Android.
Player Settings
Set the Player Settings in the Unity
Project Settings like naming the
company name, product name, version,
default icon.

Icon settings, Resolution and


Presentation, Splash Image, Other
settings and Publishing settings.
Make Sure after creating and using objects in
the unity hierarchy to place them in a neat and
Project Hierarchy tidy manner and name the objects properly.
Name the scene and place the objects in the
proper hierarchy.
Programming
Enemy Script
Player Movement
Script
Logic : Enemy Script

In the enemy’s script a variable ismove is set to true by


default and is set to false when it collides with something.

This variable is used in the update function to check every


time if the variable is true move the enemy car else if it is
false after colliding with something in our case the end of the
track then stop moving.
Logic : Player Movement Script

In the player movement’s script a variable ismove is set to


true by default and is set to false when it collides with
something.

This variable is used in the update function to check every


time if the variable is true then inside another conditional
statement is used if space key is pressed then the car moves
forward until it reaches the end of the track.
Logic : Stopping the Car

In the track consists of a hidden mesh cube which triggers


onCollision enter, this helps in triggering the script to set the
variable ismove to false after the cars have collided with the
blocker to stop the cars from moving further.
Player Car Enemy Car

Assets shorthand for anything that


Assets goes into a video game example
characters, objects, sound, effects,
map, environment etc.
Credit to the Asset Maker:
https://assetstore.unity.com/packages/3d/vehicles/land/car-toon-the-sport-car-with-interior-62697
Track and Grass Assets

The track consists of two


Paths, a finish line held by two
poles and a grass field.
Materials
These are the materials used for the assets, like
player, enemy, pole, road, path and finish line.
Textures
The two grass and skybox textures were
used to add texture to grass field and skybox
in unity.
Screenshots of the game
Role in the Project

My role in the project was of an Individual game developer.


Where I made the game design, used created and used
assets in the game and added programming scripts and
logic to the game to make the game functional and
running.
Conclusion & Future Work

In this project, a racing game in 3D was created with the help of unity engine
3d where scripts were used to add function and logic to the game and assets
were used to visually make the game appealing.

Future work of this game could include of adding more tracks, more
beautiful landscapes and scenarios.

Adding a User Interface features to track the speed and map of the game
and furthermore.
Reference

• https://docs.unity3d.com/Manual/index.html

• https://en.wikipedia.org/wiki/Racing_game

• https://en.wikipedia.org/wiki/3D_video_game

• https://unity.com/
THANK YOU

You might also like