Add unique Rogue Ball sprites

This commit is contained in:
Flashfyre 2024-03-05 19:48:41 -05:00
parent 5efec5906a
commit e2bfac8922
11 changed files with 50 additions and 6 deletions

View File

@ -4,7 +4,7 @@
"image": "pb_particles.png",
"format": "RGBA8888",
"size": {
"w": 66,
"w": 80,
"h": 8
},
"scale": 1,
@ -197,6 +197,48 @@
"w": 6,
"h": 6
}
},
{
"filename": "9.png",
"rotated": false,
"trimmed": false,
"sourceSize": {
"w": 8,
"h": 8
},
"spriteSourceSize": {
"x": 0,
"y": 0,
"w": 8,
"h": 8
},
"frame": {
"x": 66,
"y": 0,
"w": 8,
"h": 8
}
},
{
"filename": "10.png",
"rotated": false,
"trimmed": true,
"sourceSize": {
"w": 8,
"h": 8
},
"spriteSourceSize": {
"x": 1,
"y": 1,
"w": 6,
"h": 6
},
"frame": {
"x": 74,
"y": 0,
"w": 6,
"h": 6
}
}
]
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 311 B

After

Width:  |  Height:  |  Size: 583 B

View File

@ -6378,6 +6378,6 @@
"meta": {
"app": "https://www.codeandweb.com/texturepacker",
"version": "3.0",
"smartupdate": "$TexturePacker:SmartUpdate:1cf92132837bda39e18985a8b2d7242a:b3f43222d272320ba3c1bca23cdbadec:110e074689c9edd2c54833ce2e4d9270$"
"smartupdate": "$TexturePacker:SmartUpdate:8fcd45e3fbd07eb2ba83b10c307721d8:fbf9c1e68dedfd251e00376b88d5c1fb:110e074689c9edd2c54833ce2e4d9270$"
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 42 KiB

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 237 B

After

Width:  |  Height:  |  Size: 509 B

View File

@ -393,6 +393,6 @@
"meta": {
"app": "https://www.codeandweb.com/texturepacker",
"version": "3.0",
"smartupdate": "$TexturePacker:SmartUpdate:d0201027b060060859e6dd538ff09720:06e35198d6d176c5d754233d7a871f7c:8bcd206ed4f9371dcc2f2cbe354ed6ed$"
"smartupdate": "$TexturePacker:SmartUpdate:0efebcf5a0349e3198f05490d6ab3701:bd953ec0b847e86511a613c51d748a6b:8bcd206ed4f9371dcc2f2cbe354ed6ed$"
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 995 B

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 226 B

After

Width:  |  Height:  |  Size: 294 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 259 B

After

Width:  |  Height:  |  Size: 319 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 256 B

After

Width:  |  Height:  |  Size: 309 B

View File

@ -11,8 +11,10 @@ export function addPokeballOpenParticles(scene: BattleScene, x: number, y: numbe
doDefaultPbOpenParticles(scene, x, y, 96);
break;
case PokeballType.ULTRA_BALL:
doUbOpenParticles(scene, x, y, 8);
break;
case PokeballType.ROGUE_BALL:
doUbOpenParticles(scene, x, y);
doUbOpenParticles(scene, x, y, 10);
break;
case PokeballType.MASTER_BALL:
doMbOpenParticles(scene, x, y);
@ -63,10 +65,10 @@ function doDefaultPbOpenParticles(scene: BattleScene, x: number, y: number, radi
});
}
function doUbOpenParticles(scene: BattleScene, x: number, y: number) {
function doUbOpenParticles(scene: BattleScene, x: number, y: number, frameIndex: integer) {
let particles: Phaser.GameObjects.Image[] = [];
for (let i = 0; i < 10; i++)
particles.push(doFanOutParticle(scene, i * 25, x, y, 1, 1, 5, 8));
particles.push(doFanOutParticle(scene, i * 25, x, y, 1, 1, 5, frameIndex));
scene.tweens.add({
targets: particles,