1986 · Activision

Alter Ego

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/alter-ego with me to Gold.

The whole game, playable in the browser: the start, the name and the questionnaire, then a life from infancy to old age, its seven stages and their scenes, saving and resuming. Every routine of the game's own program is written again in JavaScript, and was run beside the original until the two agreed.

Loading the game's data…
  • Tap a key in this list to press it in the game.
  • ← → ↑ ↓ the joystick: move the arrow to an answer, a square of the life map or a choice beside it
  • Enter or Right Alt: fire, to take what the arrow points at
  • Beside the life map: F1 F3 F5 F7 the choices on the left, F2 F4 F6 F8 those on the right
  • Esc is RUN/STOP: the menu to save the game, resume a saved one, see your status or quit
  • Your name: type it
    here
    , Backspace rubs out, Enter ends it

The game's own screen, drawn from the port's memory each frame as the video chip would draw it, at the C64's own pace. The six disk sides are all in the drive at once, so when the game asks for another side, any key goes on. A game saved from the RUN/STOP menu is kept in this browser, and RESUME A SAVED GAME on the first screen finds it. Fast skips the waits: the C64 takes one to ten seconds over each page, unpacking its words, drawing them off the screen and then bringing the page down a pixel row a frame, and with Fast on the page shows it as soon as the game has worked it out (section 02).

01 · The port

Every routine of the game, written again in JavaScript

The game is about 40,000 bytes of program in three loads: the resident program, with the interpreter that runs the rest, the start and the life object. Most of it is p-code, a program compiled for a stack machine. The port is that program written again in JavaScript, routine by routine, reading and writing the game's variables at the game's own addresses.

Fast skips the game's waiting and changes nothing else: over Infancy's 62 keys the player waits 79 seconds without it and about a second with it.

02 · Differences

What differs from a C64