pret / pokecrystal

Disassembly of Pokémon Crystal
https://pret.github.io/pokecrystal/
2.07k stars 778 forks source link

Sync sprite and battle anim consts/labels #1055

Closed vulcandth closed 11 months ago

vulcandth commented 1 year ago

resolves #765

I'm fairly confident this is what we wanted to accomplish here. I think this is much more consistent. Let me know what you think Rangi / Mid-kid.

Edit:

What this PR has done:

Battle Animations

Sprite Animations

MISC

vulcandth commented 1 year ago

Related to #1016

vulcandth commented 1 year ago

Looks great! This is essentially what I was aiming for, yeah.

Great! I'll just wait for Rangi to have time to take a quick look as well and then i'll merge this and work on pokegold as well.

Rangi42 commented 1 year ago

So, we have this for sprite animations:

And for battle animations, with this PR:

This is mostly good. I would consider getting rid of the whole "seq(uence)" terminology, and just having indexes, functions, framesets, and oamsets.

vulcandth commented 1 year ago

Going to draft this for now until I have a chance to work on it again.. and after SourApple's PR is merged.

vulcandth commented 1 year ago

Alright I completely reworked this PR... so the old feedback is mostly irrelevant now. Look at the first comment for updated information on what this PR has changed.

mid-kid commented 1 year ago

I'd prefer SpriteAnimFunc_ and BattleAnimFunc_ over spelling out the full Function. I also wonder if InitSpriteAnimStruct could be renamed into something else, maybe SpawnSprite or AddSprite.

mid-kid commented 12 months ago

Bumping to confirm that this may be merged.

vulcandth commented 11 months ago

Thanks! I'll merge this; this weekend. So I have time to do it for pokegold as well.

xCrystal commented 11 months ago

Is it intended that SPRITEANIMSTRUCT_ANIM_SEQ_ID has not been renamed to SPRITEANIMSTRUCT_FUNC_ID (and idem for the associated WRAM addresses from the wSpriteAnim macro) even though SPRITE_ANIM_SEQ_* have been renamed to SPRITE_ANIM_FUNC_*?