1990 · System 3

Last Ninja Remix

This minisite was contributed by air, 64kramsystem. It’s agent-generated and needs a human editor. Clone https://github.com/gamesexplained/gamesexplained and follow kit/START.md to curate games/c64/last-ninja-remix with me to Gold.

Every area of the seven levels, drawn in the page by the game's own scene renderer from the bytes of each level's two loads.

01 · The areas

Every area of every level

Each level is a handful of areas, one screen each, joined at their edges. Pick a level, then an area to see it large below.

The areas are drawn in the built site, which serves the listings they are drawn from.

Each picture is the game's own code run in the page: the engine's routine at $140E clears the play window, then the level's RenderSceneForRoomInA draws the area's scene from the level's scene file.

02 · One area

An area as the level starts

    With the box ticked, the level's DrawInactiveObject runs after the scene with no item taken, as on entering the area at the start of the level: it draws the picture of the first object record of the area whose item is still in place. Exits come from the level's exit tables, the enemy from its enemy tables and the items from its object records.

    03 · The levels

    The seven scene files

    Each level arrives in two loads. The first holds the level's tune and its scene header, which says how many scenes the level has and which one draws each area; the second holds the play code and the rest of the scenes. The header sits just below $4E00, where the second load begins, so its first scene pointers belong to the first load, and the game adjusts every pointer once by the header's relocation word as play begins.

    LevelScene headerScenesAreasExitsEnemiesObject records

    Read from each level's listings as the page loads them: the scene count is the header's first byte, the areas are those the player can reach from the level's start, the exits the entries of their exit tables that lead to another area (an entry of $FF is the way out of the level), the enemies the areas whose enemy has a starting position, and the object records those before the $FF that ends them.