Scripts
Here you will find resources for all of the scripts used in the creation of the 2D demo. As scripts are added or updated, we will post them here with a comment of the additions or changes we have made.
We also value any input to the scripts or things we could do to improve the user experience. Please feel free to drop us a comment using the form on the contact page!
Here you will find resources for all of the scripts used in the creation of the 2D demo. As scripts are added or updated, we will post them here with a comment of the additions or changes we have made.
We also value any input to the scripts or things we could do to improve the user experience. Please feel free to drop us a comment using the form on the contact page!
Collectibles
Coin Box
Creates the function for a Coin GameObject ejecting from a Coin Box GameObject.
Coin Pickup
Allows the collection and value of picking up coin GameObject in the world.
CoinSpawner
Spawns Coin GameObjects from a Coin Box that has been collided with by the user.
Coin Box
Creates the function for a Coin GameObject ejecting from a Coin Box GameObject.
Coin Pickup
Allows the collection and value of picking up coin GameObject in the world.
CoinSpawner
Spawns Coin GameObjects from a Coin Box that has been collided with by the user.
Enemy
EnemyController
General behaviour for Enemy GameObject.
EnemySlime
Enemy Slime GameObject inherited behaviours.
FlyController
Fly behaviours to control Fly GameObject.
EnemyController
General behaviour for Enemy GameObject.
EnemySlime
Enemy Slime GameObject inherited behaviours.
FlyController
Fly behaviours to control Fly GameObject.
Game Systems
CameraFollow
Inherent behaviours for a Camera GameObject attached to a Player GameObject.
CheckpointTrigger
Alert for when a Checkpoint GameObject has been triggered.
FlightPoints
Controls behaviour of GameObjects movement.
SpawnTrigger
Allows position of player when respawning into the game world.
VictoryTrigger
Activates game end function when player has triggered victory flag at the end of the game world.
CameraFollow
Inherent behaviours for a Camera GameObject attached to a Player GameObject.
CheckpointTrigger
Alert for when a Checkpoint GameObject has been triggered.
FlightPoints
Controls behaviour of GameObjects movement.
SpawnTrigger
Allows position of player when respawning into the game world.
VictoryTrigger
Activates game end function when player has triggered victory flag at the end of the game world.
GUI
CoinCounter
When attached to a GameObject, it is used to track the amount of coins you collect.
GameOverScript
Triggers a Game Over screen with options to continue or exit the game.
GameWinScript
Triggers a Game Win screen with options to end game or restart.
GUIGame
Controls the on screen GUI elements seen in game.
SplashScreenDelayed
Script to control delay and fade of splash screens.
TitleScreenScript
General script for Title Screen loop.
CoinCounter
When attached to a GameObject, it is used to track the amount of coins you collect.
GameOverScript
Triggers a Game Over screen with options to continue or exit the game.
GameWinScript
Triggers a Game Win screen with options to end game or restart.
GUIGame
Controls the on screen GUI elements seen in game.
SplashScreenDelayed
Script to control delay and fade of splash screens.
TitleScreenScript
General script for Title Screen loop.
Hazards
ContactDamage
Controls damage behaviour when the Player comes in contact with a damage element.
PitTrigger
Activates a death trigger to respawn character when they fall out of the world.
ContactDamage
Controls damage behaviour when the Player comes in contact with a damage element.
PitTrigger
Activates a death trigger to respawn character when they fall out of the world.
Player
PlayerController
Base Controller for all behaviours of Player GameObject its attached to.
PlayerStats
Controls stats for Player such as health and items collected.
PlayerController
Base Controller for all behaviours of Player GameObject its attached to.
PlayerStats
Controls stats for Player such as health and items collected.