top of page

Senior project, post 06: Gameplay continued

  • Writer: Sam A
    Sam A
  • Oct 18, 2019
  • 1 min read

The second core aspect is switching of colour. For this, I made an enum to store the colours, and change the player's material and tag each time they switch. Additionally, I pass this information to the wall spawning system.


This updates which prefab is spawned behind the player.

Finally, there's the collision detection. Essentially, if the player collides with something tagged with a colour, that isn't the same as what they are currently, they get destroyed, otherwise, nothing happens.



Comments


bottom of page