diff options
author | yenatch <yenatch@gmail.com> | 2017-12-12 00:08:54 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-12 00:08:54 -0500 |
commit | f6942b9a136b2ee3b25159ebc4d54509a42c5266 (patch) | |
tree | 0c0bedcd311ab83262e31cf6d9d4c37257143acc /docs/pic_animations.md | |
parent | 94c7def4883fbdbcd3987a067443a2069b8bb610 (diff) | |
parent | 79873a1bfc0e40067c45dc74fbbebf547d177978 (diff) |
Merge pull request #411 from roukaour/master
Clean up more labels, constants, and file names
Diffstat (limited to 'docs/pic_animations.md')
-rw-r--r-- | docs/pic_animations.md | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/docs/pic_animations.md b/docs/pic_animations.md new file mode 100644 index 000000000..a87932819 --- /dev/null +++ b/docs/pic_animations.md @@ -0,0 +1,28 @@ +# Pic Animations + +Pic animations are assembled in 3 parts: + +- Top-level animations: + - `frame` *#*, *duration*: Frame 0 is the original pic (no change) + - `setrepeat` *#*: Sets the number of times to repeat + - `dorepeat` *#*: Repeats from command *#* (starting from 0) + - `end` + +- Bitmasks: + Layered over the pic to designate affected tiles + +- Frame definitions: + first byte is the bitmask used for this frame + following bytes are tile ids mapped to each bit in the mask + +Animation data is in these files: + +- gfx/pics/anims.asm: + Main animations (played everywhere) + +- gfx/pics/extras.asm: + Extra animations, appended to the main animation. + Used in the status screen (blinking, tail wags etc.) + +- gfx/pics/unown_anims.asm and gfx/pics/unown_extras.asm: + Unown has its own animation data despite having an entry in the main tables. |