Added basic (not entirely accurate) entries for the event handlers relating to actions taken by Hedgehogs / user input.
authorRedGrinner@gmail.com
Thu, 24 Mar 2011 12:43:03 +0000
changeset 98 54e178bb6986
parent 97 0803dadcc229
child 99 983ec9ac63c7
Added basic (not entirely accurate) entries for the event handlers relating to actions taken by Hedgehogs / user input.
LuaAPI.wiki
--- a/LuaAPI.wiki	Thu Mar 24 10:18:02 2011 +0000
+++ b/LuaAPI.wiki	Thu Mar 24 12:43:03 2011 +0000
@@ -93,6 +93,47 @@
 
 <blockquote>This function is called when the game is initialized to request the available ammo and ammo probabilities. Use !SetAmmo here.
 </blockquote>
+
+=== <tt>onAttack()</tt> ===
+
+<blockquote>This function is called when your Hedgehog attacks.
+</blockquote>
+
+=== <tt>onHJummp()</tt> ===
+
+<blockquote>This function is called when you press the high jump key.
+</blockquote>
+
+=== <tt>onLJummp()</tt> ===
+
+<blockquote>This function is called when you press the long jump key.
+</blockquote>
+
+=== <tt>onPrecise()</tt> ===
+
+<blockquote>This function is called when you press the precise key.
+</blockquote>
+
+=== <tt>onLeft()</tt> ===
+
+<blockquote>This function is called when you press the left key.
+</blockquote>
+
+=== <tt>onRight()</tt> ===
+
+<blockquote>This function is called when you press the right key.
+</blockquote>
+
+=== <tt>onUp()</tt> ===
+
+<blockquote>This function is called when you press the up key.
+</blockquote>
+
+=== <tt>onDown()</tt> ===
+
+<blockquote>This function is called when you press the down key.
+</blockquote>
+
 == Functions for creating gears ==
 
 === <tt>!AddGear(x, y, gearType, state, dx, dy, timer)</tt> ===