Skip to content

Instantly share code, notes, and snippets.

@curious-username
Created November 3, 2021 02:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save curious-username/85fa9cce74752c4dde8657f4f9b9dc2b to your computer and use it in GitHub Desktop.
Save curious-username/85fa9cce74752c4dde8657f4f9b9dc2b to your computer and use it in GitHub Desktop.
pseudocode planning
/*
**Laser charging then fire**
Charge for 3, laser lasts 5 seconds after charge is done.
***CHARGING***[need gameobject and script]
Particle Effect > Emission > Rate over Time.
After powerup collection
-Activate charge effect gameobject
-Start at 800 Rate over Time, Distance 0
-Subtract particles for powerup, charge time 3 seconds, Subtract 800 to 0 over 3 seconds
-Deactivate gameobject, destroy gameobject for garbage collection
Charging Sound
robot powerup type sound, not annoying
***BIG LASER***[need gameobject and script]
After charging, gradual small to big size over 2 second time frame. Laser lasts 5 seconds after charge.
-Transform > Scale X = 0 to 2.0
-Laser collides with enemies, but laser not destroyed when colliding
-After 4.5 seconds, scale back 2.0 to 0, destroy gameobject
Big Laser Sound
constant beam noise, not annoying
***BIG LASER POWERUP***
Computer chip?
Battery?
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment