91 </blockquote> |
91 </blockquote> |
92 === <tt>onAmmoStoreInit()</tt> === |
92 === <tt>onAmmoStoreInit()</tt> === |
93 |
93 |
94 <blockquote>This function is called when the game is initialized to request the available ammo and ammo probabilities. Use !SetAmmo here. |
94 <blockquote>This function is called when the game is initialized to request the available ammo and ammo probabilities. Use !SetAmmo here. |
95 </blockquote> |
95 </blockquote> |
|
96 |
|
97 === <tt>onAttack()</tt> === |
|
98 |
|
99 <blockquote>This function is called when your Hedgehog attacks. |
|
100 </blockquote> |
|
101 |
|
102 === <tt>onHJummp()</tt> === |
|
103 |
|
104 <blockquote>This function is called when you press the high jump key. |
|
105 </blockquote> |
|
106 |
|
107 === <tt>onLJummp()</tt> === |
|
108 |
|
109 <blockquote>This function is called when you press the long jump key. |
|
110 </blockquote> |
|
111 |
|
112 === <tt>onPrecise()</tt> === |
|
113 |
|
114 <blockquote>This function is called when you press the precise key. |
|
115 </blockquote> |
|
116 |
|
117 === <tt>onLeft()</tt> === |
|
118 |
|
119 <blockquote>This function is called when you press the left key. |
|
120 </blockquote> |
|
121 |
|
122 === <tt>onRight()</tt> === |
|
123 |
|
124 <blockquote>This function is called when you press the right key. |
|
125 </blockquote> |
|
126 |
|
127 === <tt>onUp()</tt> === |
|
128 |
|
129 <blockquote>This function is called when you press the up key. |
|
130 </blockquote> |
|
131 |
|
132 === <tt>onDown()</tt> === |
|
133 |
|
134 <blockquote>This function is called when you press the down key. |
|
135 </blockquote> |
|
136 |
96 == Functions for creating gears == |
137 == Functions for creating gears == |
97 |
138 |
98 === <tt>!AddGear(x, y, gearType, state, dx, dy, timer)</tt> === |
139 === <tt>!AddGear(x, y, gearType, state, dx, dy, timer)</tt> === |
99 |
140 |
100 <blockquote>This creates a new gear at position x,y (measured from top left) of kind gearType (see [GearTypes Gear Types]). The initial velocities are dx and dy. All arguments are numbers. The function returns the uid of the gear created. |
141 <blockquote>This creates a new gear at position x,y (measured from top left) of kind gearType (see [GearTypes Gear Types]). The initial velocities are dx and dy. All arguments are numbers. The function returns the uid of the gear created. |