Mercurial > touhou-doc
view 06/anm.xml @ 13:2925b0e246c6 default tip
Fix a lot of things, and add a TODO.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Fri, 17 Feb 2012 12:54:08 +0100 |
parents | 79dfd9765a67 |
children |
line wrap: on
line source
<?xml version="1.0" encoding="utf-8"?> <?xml-stylesheet type="text/xsl" href="../html.xsl"?> <?xml-stylesheet type="text/css" href="../style.css"?> <opcodes xmlns="urn:opcodes:description"> <title>ANM opcodes</title> <op> <num>0</num> <name>delete</name> </op> <op> <num>1</num> <name>set_sprite</name> <params> <param type="S" name="number" unit="sprite"/> </params> <desc>Displays a certain sprite, or change from the previous sprite.</desc> </op> <op> <num>2</num> <name>set_scale</name> <params> <param type="f" name="sx" default="in the sprite section"/> <param type="f" name="sy" default="in the sprite section"/> </params> <desc>Resizes the current sprite.</desc> </op> <op> <num>3</num> <name>set_alpha</name> <params> <param type="S" name="alpha" values="0 to 255"/> </params> </op> <op> <num>4</num> <name>set_color</name> <params> <param type="c" name="green"/> <param type="c" name="blue"/> <param type="c" name="red"/> <param type="c" name="padding"/> </params> </op> <op> <num>5</num> <name>jump</name> <params> <param type="S" name="offset">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> <op> <num>7</num> <name>toggle_mirror</name> <desc>Performs a scale of -1 on the x axis.</desc> </op> <op> <num>9</num> <name>set_3d_rotation</name> <params> <param type="f" name="-x">Warning: negative!</param> <param type="f" name="y"/> <param type="f" name="-z">Warning: negative!</param> </params> <desc>Set a rotation for the current object.</desc> </op> <op> <num>10</num> <name>set_3d_rotation_speed</name> <params> <param type="f" name="-x">Warning: negative!</param> <param type="f" name="y"/> <param type="f" name="-z">Warning: negative!</param> </params> </op> <op> <num>11</num> <name>set_scale_speed</name> <params> <param type="f" name="sx_speed"/> <param type="f" name="sy_speed"/> </params> </op> <op> <num>12</num> <name>fade</name> <params> <param type="S" name="new_alpha"/> <param type="S" name="duration" unit="frames"/> </params> </op> <op> <num>13</num> <name>set_blendfunc_alphablend</name> </op> <op> <num>14</num> <name>set_blendfunc_add</name> </op> <op> <num>15</num> <name>keep_still</name> <desc>When this instruction is called, the sprite is a still image: the script stops without the sprite disappearing.</desc> </op> <op> <num>16</num> <name>set_random_sprite</name> <params> <param type="S" name="first" unit="sprite"/> <param type="S" name="number"/> </params> <desc>Select a sprite in the [first, first+number) range.</desc> </op> <op> <num>17</num> <name>set_3d_translation</name> <params> <param type="f"/> <param type="f"/> <param type="f"/> </params> </op> <op> <num>18</num> <name>move_to_linear</name> <params> <param type="f" name="x"/> <param type="f" name="y"/> <param type="f" name="y"/> <param type="S" name="duration"/> </params> <desc>Move the sprite in the indicated coordinates in `duration` seconds.</desc> </op> <op> <num>19</num> <name>move_to_decel</name> <params> <param type="f" name="x"/> <param type="f" name="y"/> <param type="f" name="z"/> <param type="S" name="duration"/> </params> <desc>Move the sprite in the indicated coordinates in `duration` seconds.</desc> </op> <op> <num>20</num> <name>move_to_accel</name> <params> <param type="f" name="x"/> <param type="f" name="y"/> <param type="f" name="z"/> <param type="S" name="duration"/> </params> <desc>Move the sprite in the indicated coordinates in `duration` seconds.</desc> </op> <op> <num>21</num> <name>wait_event</name> <desc>Wait for an event.</desc> </op> <op> <num>22</num> <name>set_event</name> <params> <param type="S"/> </params> <desc>Set the event number to wait for.</desc> </op> <op> <num>23</num> <name>set_bottom_left_as_origin</name> <desc>Set the sprite's bottom-left corner as its origin (otherwise, the sprite's origin is its center).<br/> This parameter effectively translates the sprite by (width / 2., height / 2., 0.) once every other sprite operation has been executed.</desc> </op> <op> <num>24</num> <name>?_event</name> <desc>Has something to do with events.</desc> </op> <op> <num>25</num> <name>set_allow_dest_offset</name> <params> <param type="S"/> </params> <desc></desc> </op> <op> <num>26</num> <name>set_automatic_angle</name> <params> <param type="S" name="x">Bitfield</param> </params> <desc>If <code>x & 1</code>, rotate on z by <code>pi - angle</code>.</desc> </op> <op> <num>27</num> <name>shift_texture_x</name> <params> <param type="f" name="dx" unit="pixels"/> </params> <desc>Add dx to the x coordinates of the texture, causing the texture to "move".</desc> </op> <op> <num>28</num> <name>shift_texture_y</name> <params> <param type="f" name="dy" unit="pixels"/> </params> <desc>Add dy to the y coordinates of the texture, causing the texture to "move".</desc> </op> <op> <num>29</num> <name></name> <params> <param type="S"/> </params> <desc></desc> </op> <op> <num>30</num> <name>scale_in</name> <params> <param type="f" name="new_sx"/> <param type="f" name="new_sy"/> <param type="S" name="duration" unit="frames"/> </params> <desc>Sets the scale factor to (new_sx, new_sy) in duration frames.</desc> </op> <op> <num>31</num> <name></name> <params> <param type="S"/> </params> <desc></desc> </op> </opcodes>