diff options
author | Rangi <remy.oukaour+rangi42@gmail.com> | 2018-07-22 19:05:22 -0400 |
---|---|---|
committer | Rangi <remy.oukaour+rangi42@gmail.com> | 2018-07-22 19:05:22 -0400 |
commit | 433347c3f99c7b50eb18af8df57f44b49822b2cc (patch) | |
tree | e721e6a6126ab454e30558efcca1443e13d565e4 | |
parent | 25e1746f50dfa3948c4384250bbd43a02eae5c72 (diff) |
Formatting
-rw-r--r-- | Remove-Pokémon-sprite-animations.md | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/Remove-Pokémon-sprite-animations.md b/Remove-Pokémon-sprite-animations.md index 0063f63..553112d 100644 --- a/Remove-Pokémon-sprite-animations.md +++ b/Remove-Pokémon-sprite-animations.md @@ -91,7 +91,7 @@ And edit [pokecrystal.link](../blob/master/pokecrystal.link): - "Pic Animations 1" -ROMX $35 - "Pic Animations 2" --ROMX $36 + ROMX $36 "Font Inversed" - "Pic Animations 3" ``` @@ -366,7 +366,7 @@ Edit [engine/events/halloffame.asm](../blob/master/engine/events/halloffame.asm) + ret ``` -The Hall of Fame uses its own `HOF_AnimateFrontpic` instead of the usual `AnimateFrontpic`, so we copied its extra behavior. +The Hall of Fame uses its own `HOF_AnimateFrontpic` instead of the usual `AnimateFrontpic`, so we copied its extra behavior. We also increased the delay for displaying new Hall of Famers from 60 frames to 180, the same as G/S, since sprite animations aren't contributing to the delay any more. Edit [mobile/mobile_42.asm](../blob/master/mobile/mobile_42.asm): @@ -575,22 +575,22 @@ Then edit the [Makefile](../blob/master/Makefile): - tools/pokemon_animation_graphics --girafarig -t $@ $^ - -### Pokemon pic graphics rules + ### Pokemon pic graphics rules -gfx/pokemon/%/front.dimensions: gfx/pokemon/%/front.png - tools/png_dimensions $< $@ -gfx/pokemon/%/normal.pal: gfx/pokemon/%/normal.gbcpal - tools/palette -p $< > $@ -gfx/pokemon/%/normal.gbcpal: gfx/pokemon/%/front.png - $(RGBGFX) -p $@ $< -gfx/pokemon/%/back.2bpp: gfx/pokemon/%/back.png - $(RGBGFX) -h -o $@ $< + gfx/pokemon/%/front.dimensions: gfx/pokemon/%/front.png + tools/png_dimensions $< $@ + gfx/pokemon/%/normal.pal: gfx/pokemon/%/normal.gbcpal + tools/palette -p $< > $@ + gfx/pokemon/%/normal.gbcpal: gfx/pokemon/%/front.png + $(RGBGFX) -p $@ $< + gfx/pokemon/%/back.2bpp: gfx/pokemon/%/back.png + $(RGBGFX) -h -o $@ $< -gfx/pokemon/%/bitmask.asm: gfx/pokemon/%/front.animated.tilemap gfx/pokemon/%/front.dimensions - tools/pokemon_animation -b $^ > $@ -gfx/pokemon/%/frames.asm: gfx/pokemon/%/front.animated.tilemap gfx/pokemon/%/front.dimensions - tools/pokemon_animation -f $^ > $@ -gfx/pokemon/%/front.animated.2bpp: gfx/pokemon/%/front.2bpp gfx/pokemon/%/front.dimensions - tools/pokemon_animation_graphics -o $@ $^ + gfx/pokemon/%/front.animated.2bpp: gfx/pokemon/%/front.2bpp gfx/pokemon/%/front.dimensions + tools/pokemon_animation_graphics -o $@ $^ + tools/trim_animation.sh $@ $(word 2,$^) -gfx/pokemon/%/front.animated.tilemap: gfx/pokemon/%/front.2bpp gfx/pokemon/%/front.dimensions - tools/pokemon_animation_graphics -t $@ $^ @@ -611,4 +611,4 @@ Let's go over what trim_animation.sh is doing. Before, this was the workflow whe Anyway, trim_animation.sh takes each front.animated.2bpp file and removes the animation tiles, keeping only the transposed tiles for the first frame. It reads front.dimensions to know how many tiles the first frames uses. Then each tile uses 16 bytes, so it keeps that many bytes of the head of the file. -We're done! This change frees up 102 KB of a 2 MB ROM: nearly 5% of the total space. Considering that an original Crystal ROM has 20% of its space unused, we've increased the free space by nearly 25%. +That's it, we're done! This change frees up 102 KB of a 2 MB ROM: nearly 5% of the total space. Considering that an original Crystal ROM has 20% of its space unused, we've increased the free space by nearly 25%. |