Skip to content

Player Spaceship

AlexanderMcCord edited this page Sep 21, 2022 · 4 revisions

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: DataFolder


The player ship has different values that can be modified from the inspector: PlayerVariants

Data

  • 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.

Client Info

  • 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

Score

  • 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.