changeset 9:6d47bfc23c64

Document a few more ANM instructions
author Thibaut Girka <thib@sitedethib.com>
date Tue, 23 Aug 2011 15:28:31 +0200
parents c5b074b0abbd
children d0e992b282a0
files 06/anm.xml
diffstat 1 files changed, 21 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- a/06/anm.xml
+++ b/06/anm.xml
@@ -38,8 +38,12 @@
 
 	<op>
 		<num>4</num>
+		<name>set_color</name>
 		<params>
-			<param type="S"></param>
+			<param type="c">g</param>
+			<param type="c">b</param>
+			<param type="c">r</param>
+			<param type="c">padding</param>
 		</params>
 	</op>
 
@@ -47,7 +51,7 @@
 		<num>5</num>
 		<name>jump</name>
 		<params>
-			<param type="S">relative offset of the instruction to jump to</param>
+			<param type="S">absolute offset within the script of the instruction to jump to</param>
 		</params>
 		<desc>Jump to the given instruction and reset the frame counter to the instruction's frame.</desc>
 	</op>
@@ -81,17 +85,19 @@
 
 	<op>
 		<num>11</num>
+		<name>set_scale_speed</name>
 		<params>
-			<param type="f"></param>
-			<param type="f"></param>
+			<param type="f">sx speed</param>
+			<param type="f">sy speed</param>
 		</params>
 	</op>
 
 	<op>
 		<num>12</num>
+		<name>fade</name>
 		<params>
-			<param type="S"></param>
-			<param type="S"></param>
+			<param type="f">new_alpha</param>
+			<param type="S">duration</param>
 		</params>
 	</op>
 
@@ -111,10 +117,12 @@
 
 	<op>
 		<num>16</num>
+		<name>set_random_sprite</name>
 		<params>
-			<param type="S"></param>
-			<param type="S"></param>
+			<param type="S">id of the first sprite</param>
+			<param type="S">number of sprites</param>
 		</params>
+		<desc>Select a sprite in the [[id, id+number)) range.</desc>
 	</op>
 
 	<op>
@@ -219,11 +227,13 @@
 
 	<op>
 		<num>30</num>
+		<name>scale_in</name>
 		<params>
-			<param type="f"></param>
-			<param type="f"></param>
-			<param type="S"></param>
+			<param type="f">new_sx</param>
+			<param type="f">new_sy</param>
+			<param type="S">duration</param>
 		</params>
+		<desc>Sets the scale factor to (new_sx, new_sy) in duration frames.</desc>
 	</op>
 
 	<op>