Space Shooter Features: Thrusters

Receipt

  1. Write a condition that checks whether the left Shift key is pressed.
  2. If the left Shift key is depressed, increase the speed variable.
  3. Write a condition that checks if the left Shift key is pressed up.
  4. If the left Shift key is pressed up, set the speed variable to the default value.

Solution

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Damian Dąbrowski

Damian Dąbrowski

Hi, I’m Damian, a Unity Software Engineer who loves building education and simulation games.