Graphics Reference
In-Depth Information
Top_down_player_ALT
PROJECTILES
Blast
Blast2
WEAPONS
Blaster
Blaster_1
EXPLOSION PREFAB (not specific to this game; the explosion prefab is in the
PARTICLE_EFFECTS folder)
The rest of this chapter will look at the scripts and the programming behind the script
components within the prefabs and gameObjects looked at so far.
11. 4 Ingredients
Lazer Blast Survival
uses the following ingredients:
1.
Game Controller. The game controller script for this game derives from
BaseGameController.cs
2.
The Main Player. The player rig is based on a Unity character controller and the
scripts used to control the main player are as follows:
a.
A main player script derived from BaseTopDown.cs (found in Chapter 5,
Section 5.2.)
b.
The player data manager BasePlayerManager.cs (found in Chapter 3, Section 3.3.)
c.
The weapon controller Standard_Slot_Weapon_Controller.cs
3.
The enemy bots. The enemies are made of the following scripts:
a.
Enemy bot controller derived from BaseArmedEnemy.cs
b.
BaseAIController.cs for patrolling and target chasing logic.
c.
SimpleBotMover.cs to make the bot move around.
d.
A rigidbody component.
e.
The weapon controller Standard_Slot_Weapon_Controller.cs
f.
A box collider component.