Skip to content

Game Juice (Programming)

Ryxali edited this page Feb 17, 2015 · 9 revisions

By changing certain fields, special effects will occur or intensify.

As a rule of thumb, avoid editing the fields of singletons if they aren't listed here as they are likely used as a parameter for the Unity Editor.

HUDSingleton.instance (located in HUDGUI):

  • speed - update with the speed of the client's character to increase the value of the speedometer
  • onFire - set to true when the client's character reaches fiery speed mode to make the no-smoking sign shake

ScoreBoard.instance

  • spawnAmbulance() - spawns an ambulance that will travel to the left of the screen. NOTE that ambulances won't spawn if the dynamic GUI is turned off
  • Display (Announcments announcment, float duration) - displays a splash screen for given duration, replaces any previous splash screens still in effect.

(Removed)Bobber.instance (located in ColosseumParent/Colosseum/Crowd):

  • cheerFactor - Update with a higher value to have the crowd cheer more frequently. Acheiving 10000 bobsPerTick with a bobTimer of 1.0 yields maximum cheering.
  • startClimax(float, float) - call this function when you want to add a moment of intense cheering, i.e. popular player scores kill.
Clone this wiki locally