Port Fly, Dig, Teleport and the Escape Rope
FLY opens _FlyMap in the party menu: the region's Town Map with "Where?", the visited flypoints in turn and the Fly user's icon, then FlyScript flies the icon off along SpriteAnimFunc_FlyFrom's path, enters the spawn point and lands it with SpriteAnimFunc_FlyTo. Teleport returns to the last Pokémon Center's town through IsSpawnPoint. Dig and the Escape Rope lead out of a cave to the warp EnterMapWarp's SaveDigWarp recorded, which saves now keep. newloadmap stops its script as StopScript does and the world resumes it on the new map, which the landing and return movements need. A destination that is not ported yet gives a notice. Closes #25 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
c4cc0e756c
commit
a7aceda089
21 files changed
+1166
-97
No files matched your search
@@ -177,6 +177,29 @@ export class WorldRenderer {
|
||||
{ transparent: true },
|
||||
);
|
||||
}
|
||||
const flying = world.flyingIcon;
|
||||
if (flying) {
|
||||
// SPRITE_ANIM_OBJ_RED_WALK with the icon's tiles: each frame shows
|
||||
// for nine video frames, the second one mirrored on every other pass.
|
||||
const graphics = this.assets.monIcon(flying.species),
|
||||
phase = Math.floor(flying.frames / 9) % 4,
|
||||
flip = phase === 3,
|
||||
palette = this.assets.objectPalette(0, time);
|
||||
for (let tile = 0; tile < 4; tile++) {
|
||||
const column = tile & 1;
|
||||
drawTile(
|
||||
this.image.data,
|
||||
this.width,
|
||||
this.height,
|
||||
graphics,
|
||||
(phase & 1) * 4 + tile,
|
||||
player.x - cameraX + flying.x + (flip ? 8 - column * 8 : column * 8),
|
||||
player.y - cameraY - 4 + flying.y + (tile >> 1) * 8,
|
||||
palette,
|
||||
{ transparent: true, flipX: flip },
|
||||
);
|
||||
}
|
||||
}
|
||||
this.context.putImageData(this.image, 0, 0);
|
||||
}
|
||||
private actor(
|
||||
|
||||
Reference in new issue
Block a user