1989 · Monarch Software

Graphics

This minisite was contributed by unorig. It’s agent-generated and needs a human editor. Clone https://github.com/gamesexplained/gamesexplained and follow kit/START.md to curate games/c64/a-nightmare-on-elm-street with me to Gold.

Every shape the five Dream Warriors, the monsters, and Freddy are drawn with, and the three ways the game shows a death.

01 · The five characters

One body for all five, and a pose of their own

Each character is two sprites at the same place: a black outline in front and a multicolour fill behind it, in white with blue and red. They walk in eight directions with seven frames each, and only the last frame differs from one character to the next.

Rows are the eight facings, from up round clockwise to up and to the left. Columns 0 to 3 are the walking steps, 4 firing a gun, 5 a blow with a weapon in hand, and 6 the special power. The shapes are the file PLYR, which leave_street loads before the house and spreads through the video chip's bank: shapes 0 to 47 to $C000, shapes 96 to 143 under the I/O chips, and the character's own 16 to shapes 144 to 159.

player_sprite picks the frame from the walking step at $734A: steps 0 to 5 cycle through frames 0, 1, 2, 3, 2, 1, step 6 is the gun (fire_gun), step 7 a blow (strike), and step 8 the special power (special_power). Frames 0 to 5 are the same shapes for everyone. Frame 6, the special power, comes from each character's own block of PLYR, which the table at $1F80 names: Kincaid's, Kristen's, Taryn's, and one block that Will and Nancy share, so Will's lightning and Nancy's freezing of time are drawn with the same pose.

02 · The monsters

Five monsters and Freddy

The monsters are single sprites, each kind with its own first shape, frame count, and colour. Freddy, like the player, is an outline in front of a multicolour fill.

Each row is a kind, walking in each of the facings it has: down, up, right, and left. The shapes are in the file MON, kept from $E800 for the whole game. A monster's shape is the kind's first shape (kind_shape), plus its facing, plus the frame times the kind's step (monster_frame); for Freddy the sum is doubled, since each of his frames is two sprites. The game names the slime, the skeleton, and Freddy in a chest's messages, and the roaches and wheelchairs in its level hints ("THE PICK WORKS BEST ON ROACHES", "THE AXE WORKS BEST ON WHEELCHAIRS"); the winged kind is named nowhere.

KindLooks likeHit pointsDamageChance to hit, of 256Speed (higher is slower)Weak to (damage)Shoots (damage)

The figures come from the kind tables from kind_hit_chance to kind_shot. The chance to hit is out of 256, rolled each time a monster reaches the player (monster_attack). Speed is what move_monsters adds back to a monster's fraction byte each time 23 borrows from it, so a higher number is a slower monster. A weapon a kind is weak to does a fixed amount of its own to it (damage_monster). For the skeleton that changes nothing: the BASEBALL BAT does 19 to every monster, and 19 to a skeleton (Discoveries). A monster that shoots fires the shot kind in kind_shot, whose damage is in shot_damage. Freddy's hit points are ten times the level plus one wherever he appears, and 1,000 in the final fight.

Only kind 0 walks through walls: place_monster gives it flag bit 1. Kinds 0 and 2 always face the same way, because monster_step sets their facing to 0, and that is why they have no rows for the other facings. In the final fight, Freddy is drawn at double size from his same shapes, cut to the play area by freddy_big_shape.

03 · Death

Three ways to die

The three animations are drawn from the 30 shapes of the file DEATH. enter_setup loads it to $9080, and death_animation plays it when the soul runs out: killed by Freddy (3 frames), by a monster (4 frames), or by a floor (5 frames). Each frame is held for seven waits.

Which animation plays comes from $7A3F, set by what did the damage: 0 when Freddy hits (monster_attack), 1 for any other monster, and 2 for a floor (hurt_floor). Freddy's animation is two sprite pairs side by side: the player's figure splits down the middle and the halves fall apart. A monster's is a figure that stays where it is while its head, a pair of its own, flies up and away along the places at death_x and death_y. The floor's puts the same pair on both sprite pairs. On level 10, enter_level loads DEAT1 over the second half of the file, from $9380, and a death by Freddy there plays the floor's animation instead of his own.