Changes

Jump to navigation Jump to search
Line 246: Line 246:     
===Game loop===
 
===Game loop===
<tt>this.Helper.Events.GameLoop</tt> has events linked to the game's update loop. The update loop runs roughly ≈60 times/second to run game logic like state changes, action handling, etc. These can be useful, but you should consider more semantic events like <tt>Input</tt> if possible.
+
<tt>this.Helper.Events.GameLoop</tt> has events linked to the game's update loop. The update loop runs roughly ≈60 times/second to run game logic like state changes, action handling, etc. These are often useful, but you should consider semantic events like <tt>Input</tt> where applicable.
    
{| class="wikitable"
 
{| class="wikitable"
Line 253: Line 253:  
! summary
 
! summary
 
{{/event
 
{{/event
  |name = Launched
+
  |name = GameLaunched
 
  |desc = Raised after the game is launched, right before the first update tick. This happens once per game session (unrelated to loading saves). All mods are loaded and initialised at this point, so this is a good time to set up mod integrations.
 
  |desc = Raised after the game is launched, right before the first update tick. This happens once per game session (unrelated to loading saves). All mods are loaded and initialised at this point, so this is a good time to set up mod integrations.
 
}}
 
}}
 
{{/event
 
{{/event
  |name = Updating<br />Updated
+
  |name = UpdateTicking<br />UpdateTick
  |desc = Raised before/after the game performs its overall update tick (≈60 times per second).
+
  |desc = Raised before/after the game state is updated (≈60 times per second).
    
  |arg name 1 = <tt>e.Ticks</tt>
 
  |arg name 1 = <tt>e.Ticks</tt>
Line 275: Line 275:     
===Input===
 
===Input===
<tt>this.Helper.Events.Input</tt> has events raised when the player uses a controller, keyboard, or mouse in some way. Can be used with the [[../Input|input API]] to access more info or suppress input.
+
<tt>this.Helper.Events.Input</tt> has events raised when the player uses a controller, keyboard, or mouse in some way. They can be used with the [[../Input|input API]] to access more info or suppress input.
    
{| class="wikitable"
 
{| class="wikitable"
translators
8,403

edits

Navigation menu