equal
deleted
inserted
replaced
96 </blockquote> |
96 </blockquote> |
97 Can be used to show the mission and for more setup, for example initial target spawning. |
97 Can be used to show the mission and for more setup, for example initial target spawning. |
98 |
98 |
99 === <tt>onGameTick()</tt> === |
99 === <tt>onGameTick()</tt> === |
100 |
100 |
101 <blockquote>This function is called on every game tick, i.e. 1000 times a second. |
101 <blockquote>This function is called on every game tick, i.e. 1000 times a second. If you just need to check on something periodically, consider... |
|
102 </blockquote> |
|
103 |
|
104 === <tt>onGameTick20()</tt> === |
|
105 |
|
106 <blockquote>This function is called every 20 game ticks, i.e. 50 times a second. It reduces lua overhead for simple monitoring that doesn't need to happen every single tick. |
102 </blockquote> |
107 </blockquote> |
103 |
108 |
104 === <tt>onNewTurn()</tt> === |
109 === <tt>onNewTurn()</tt> === |
105 |
110 |
106 <blockquote>This function calls at the start of every turn. |
111 <blockquote>This function calls at the start of every turn. |