Energy Ball animation

This commit is contained in:
DizzyEggg 2019-04-02 13:05:20 +02:00
parent 5c44f44ad2
commit 79fec8a38d
2 changed files with 40 additions and 14 deletions

View File

@ -1652,6 +1652,21 @@ Move_FOCUS_BLAST:
end
Move_ENERGY_BALL:
loadspritegfx ANIM_TAG_ENERGY_BALL
monbg ANIM_TARGET
setalpha 12, 8
createsprite gSimplePaletteBlendSpriteTemplate, ANIM_ATTACKER, 2, 1, 1, 0, 8, RGB_BLACK
waitforvisualfinish
delay 15
createsoundtask sub_8158C58, SE_W054, SOUND_PAN_ATTACKER, SOUND_PAN_TARGET, 5, 5, 0, 5
createsprite gEnergyBallSpriteTemplate, ANIM_TARGET, 2, 12, 4, 8
waitforvisualfinish
playsewithpan SE_W028, SOUND_PAN_TARGET
createvisualtask AnimTask_ShakeMon2, 2, ANIM_TARGET, 4, 0, 8, 1
createsprite gSimplePaletteBlendSpriteTemplate, ANIM_ATTACKER, 2, 1, 1, 8, 0, RGB_BLACK
waitforvisualfinish
clearmonbg ANIM_TARGET
blendoff
end
Move_BRAVE_BIRD:

View File

@ -98,6 +98,17 @@ const struct SpriteTemplate gUnknown_08596D58 =
.callback = InitAnimShadowBall,
};
const struct SpriteTemplate gEnergyBallSpriteTemplate =
{
.tileTag = ANIM_TAG_ENERGY_BALL,
.paletteTag = ANIM_TAG_ENERGY_BALL,
.oam = &gUnknown_08524974,
.anims = gDummySpriteAnimTable,
.images = NULL,
.affineAnims = gUnknown_08596D54,
.callback = InitAnimShadowBall,
};
const union AnimCmd gUnknown_08596D70[] =
{
ANIMCMD_FRAME(0, 2),