-
Notifications
You must be signed in to change notification settings - Fork 63
Player Spaceship
There are four main characters to choose from:
Kat |
Dante |
Sabrina |
Muyu |
---|
Because of this, we create a scriptable object for setting the data of every character, in this system you can create more characters or edit the ones created:
The player ship has different values that can be modified from the inspector:
-
Character sprite
: Sprite used on the selection screen -
Character ship sprite
: Sprite of the ship use on the selections screen -
Icon sprite
: Sprite use on the health UI -
Icon death sprite
: Sprite use on the health UI when dead -
Character name
: Name of the character -
Spaceship prefab
: Spaceship prefab use in the gameplay scene -
Spaceship score prefab
: Prefab use on the victory/defeat screen -
Color
: Color to identify the character use on different UI and effects -
Dark color
: Alternative color to identify the character used on different UI and effects.
-
ClientId
: id of the client who selected this character -
PlayerId
: Player id of this character can only be (1,2,3 or 4) -
IsSelected
: A boolean to check if this character is selected
-
Enemies destroyed
: Number of enemies this character destroyed during the game session -
Power ups used
: Number of power ups the player used during the game session
And you can create a new spaceship file by clicking on :Assets/Galactic Kittens/Character Data
from the editor main toolbar or Create/Galactic Kittens/Character Data
by right-clicking on the project window.
Developer guide:
-
Important code classes:
-
Characters: