1986 · Domark

Friday the 13th: discoveries

This minisite was curated by air, unorig.

Jason will hunt a friend he has already killed, the most frightened face in the panel is the calmest one, and the bonus for winning a round pays most when everyone else is dead.

01 · Bug

Bug: Jason gets stuck at the fence outside the church

Jason can stop dead on his way to the church and never arrive. When his victim is inside, he walks to room 11, where the church door is, and catches on the end of the fence that runs down the room, right at the gap he has to go through. There he stays, in black, for the rest of the round, and his victim lives. If the victim is you, he never comes, and the round ends when the danger clock runs out.

Room 11: Jason, in black, against the fence at the left, with the church and its door at the right
Jason in room 11, caught on the end of the fence at its gap, with the church door to the right. The game holds him there, at x 28, y 77.

Each pass, Jason takes a step to the right, into the fence. The code for a blocked walker ($ADE0, inside stairs_check) moves him back 4 pixels and picks his next step from his turn at actor_turn. His turn is 0, up. For a walker turning up or down, the code keeps the turn and sends him on up and to the right again; it changes the turn only for one turning left or right. The step up does not move him either, so on the next pass he is back where he was and makes the same move. His step at actor_step_x stays 1 across and −1 down, and his turn stays 0, for as long as the round lasts.

Friends 7 and 8 start each round in the church, and so do you, so a victim there is common. Stand still in the church on the camp from above and it happens in about a third of rounds.

02 · Bug

Bug: Jason picks a victim he has already killed

When Jason reveals himself, jason_reveal looks through the ten others for the one with the highest exposure. The loop leaves out Jason himself and anyone sheltering in the safe room, and nothing else: a dead friend keeps the exposure they had, so a body can be the victim.

The hunt that follows does not check either. jason_hunt walks Jason to the body's room and sets the victim's state to panicking, which brings the body back into play to be killed a second time. With friend 6 dead, Jason as friend 5, and friend 6 given the highest exposure, the next try revealed Jason and friend 6's state at actor_state went through the three steps below.

  1. Step 10DeadKilled earlier in the round, but still the most exposed.
  2. Step 2$88Panicking, struckJason reaches the body, and the hunt marks it as a victim in panic.
  3. Step 3$80Killed againThe blow lands on someone who was already dead.

Friend 6's state at actor_state, read at each step.

Every attack also raises everyone's exposure and your fear, so a second death of the same friend costs you as much as the first.

03 · Bug

Bug: at full fear the head is the calmest one

Fear runs from 0 to 80, and the panel shows it as one of eight heads, picked by fear divided by 10. Fear 80 divided by 10 is 8, one past the last head.

The page runs the game's draw_fear_head on a copy of the C64's processor and draws the head's 16 characters from the panel's character set.

draw_fear_head keeps the head's number inside the table of eight with AND #$07, so 8 becomes 0 and the head goes back to the first, unworried picture. Both routines that add fear, jason_hunt and scare_check, stop it at exactly 80, so a player who has seen enough reaches it and stays there, smiling.

04 · Bug

Bug: the biggest bonus is for saving nobody

Kill Jason and the round's bonus is meant to be 1,000 on screen for each friend still alive. With every friend dead it is 25,600.

The page runs the bonus part of round_won, from $9266 to $928C, on a copy of the C64's processor and reads the score it leaves.

round_won counts the survivors, multiplies by 10, and calls add_score ten times with that number. add_score counts down the points to add with DEX and BNE, which with a count of 0 goes round 256 times, not none. Ten calls of 256 points add 2,560, shown as 25,600, where nine survivors earn 9,000. The bonus line on the next screen still says 0.

05 · Quirk

One visit to the safe room lets you shelter friends from anywhere

send_to_shelter sends a friend you touch to the safe room only if safe_room_seen is set. The flag looks as if it means "the player is in the safe room", but draw_room sets it when it draws the safe room and nothing clears it until start_play begins the next round. After one visit, any friend you bump into, in any room, turns round and walks to shelter.

With the safe room in room 25 and you in room 38, a friend placed on top of you kept wandering while the flag was 0. With the flag set to 1, as a visit leaves it, the same touch sent the friend to shelter: state 5, heading for room 25, with 32 counts of shelter time, which is 90 minus that friend's exposure of 58.

06 · Leftover

A footstep sound that never plays

player_input calls footstep on every step. Its first byte is an RTS, and behind it is a routine that sets the volume and plays a short burst of noise on voice 1. Someone switched the footsteps off with one byte and left the sound in.

07 · Quirk

A room tune with no room

The six places that start a tune of their own are at tune_places, one for each of tunes 1 to 6. Five are rooms. The fourth is $FF, a packed place no room has (area 3, column 7, row 7), so place_tune never starts tune 4 and it is heard only when Jason reveals himself. The Music page plays all seven.

08 · Leftover

Small things nothing uses

09 · Quirk

Oddities: a fixed exposure and a second axe

10 · Quirk

"You and nine friends" are eleven

The story screen of the introduction (text_story) sends you to Crystal Lake with nine friends. The game has ten others walking about besides you, at actor_place and the tables after it, because one of them is Jason in disguise.