mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2025-01-18 01:14:19 +01:00
Energy Ball animation
This commit is contained in:
parent
5c44f44ad2
commit
79fec8a38d
@ -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:
|
||||
|
11
src/ghost.c
11
src/ghost.c
@ -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),
|
||||
|
Loading…
x
Reference in New Issue
Block a user