1986 · Domark

Friday the 13th: gameplay

This minisite was curated by air, unorig.

Jason hides among ten friends until the danger clock says otherwise. Walk in on a body, or watch a whole round from above as he hunts them down.

01 · The jumpscare

A body, a picture, and a scream

The first time you walk into a room where a friend lies dead, the game rolls a number below 50. On 40 or more, one time in five, it blacks out the room, puts up a severed head or a pile of skulls, and screams for two seconds while everything stops.

Shows a gory picture and plays a loud scream.

The game's own code plays this, frame by frame, from the moment you walk right out of room 13 with Gerry. Friend 2, who starts every round in room 14, lies dead there. Here the roll always comes up 40 or more; the picture is the game's choice, each one half the time. The scream is the game's recording, as on the Music tab, and the music that plays between rooms is left out.

Walking into a room runs draw_room, which turns the sprites off and calls scare_check before it draws anything. The check looks for a dead friend whose place is your room. Each friend has a flag at scare_seen, set the first time you find their body whatever the roll, so every body gets one roll and no more.

On 40 or more, your fear goes up by twice your counsellor's fear value, to at most 80, and the play area is cleared to black. show_gore draws one of its two pictures, and scream blanks the panel and plays the scream with the interrupts off, so nothing moves and the music halts. Then draw_room carries on where it left off, and the room is drawn over the picture a tile at a time.

02 · The camp from above

Every room at once, while Jason hunts

You stand still in the church, where every round starts, and the game plays the round around you. Ten others wander the 44 rooms, Jason among them in disguise, until the danger clock lets him throw it off. Then he picks the most exposed, walks to them room by room, and they fall one by one.

RoomDoingExposureStrength

    Each round is the game's own code on a copy of the C64's processor, set up as for Gerry; New round starts another, with other random numbers. A dot is a friend, numbered 0 to 9 in their own colour, and a cross is a body. Jason turns black when he reveals himself, his victim has a red ring, and the red line is his path; in the table, his row is black and his victim's is red. Times run at the game's rate, with two seconds for each scream, when the whole game stops. Doors join room 17 to the lodge, room 11 to the church, and room 9 to the barn.

    Jason chooses his victim the moment he reveals himself, by exposure: whoever has the most, you included when your fear is higher than everyone's. He walks there as the others walk, a step every other pass, room to room and through the doors, and none of it depends on where you are. A friend he reaches gets one roll: he gives up unless a number below 60 falls under their exposure. Otherwise he swings until they fall, and the scream plays wherever they are.

    Out of your sight, nothing decides whether a blow lands. In your room each blow is a sprite, and it hits whoever it touches. Anywhere else, once he is within 13 pixels across and 4 down, every swing takes 8 strength off the victim, more for each round you have won.

    Watch a round where the most exposed friend is in the church with you. Jason heads for the church door in room 11, catches on the end of the fence at its gap, and stays there for the rest of the round. Discoveries tells why.

    03 · Jason

    The disguise, and when it drops

    At the start of each round pick_jason chooses one of the ten others at random to be Jason. He walks about like everyone else until the game decides he starts killing.

    The chances are worked out with the game's own random: a byte from the sound chip's noise with the raster line's low bit ORed in, reduced by repeated subtraction. Times assume 4.48 frames between counts, the rate in play, and no blows on friends.

    The round's clock is danger_clock. It starts at 0 and rises by 2 every 128 counts of pass_count, which counts once every two passes of the game's loop, about every 4.5 frames. At $C0 the time is up, about 18 minutes in. Hitting an innocent friend with a weapon also adds 2.

    Every 256 counts, about every 23 seconds, jason_reveal draws a number below the clock plus 20, and Jason reveals himself when the number falls below the clock. The chance is close to clock ÷ (clock + 20): nothing at the start, a third at a clock of 10, and nine in ten by the end. Over ten tries that adds up quickly, so Jason has almost always thrown off the disguise within four minutes. When he does, tune 4 starts and he picks a victim. A hunt he gives up sends him back to wandering (jason_give_up), and the next try can set him off again.

    The victim is whoever is most exposed. Each of the ten starts the round with a random exposure from 10 to 74 at actor_exposure, and every attack by Jason raises everyone's by 2. Your fear sits in the same table, so you become the victim if your fear is higher than every friend's exposure. Jason leaves out himself and anyone sheltering in the safe room, but not the dead, as Discoveries shows.

    The hunt is jason_hunt. Jason walks towards the victim's room. When he arrives, a friend gets one chance: Jason gives up and goes home unless a number below 60 falls under that friend's exposure. You get no such chance, because the check is only for friends. Otherwise the victim panics, and the attack raises everyone's exposure by 2 and your fear by your counsellor's fear value.

    Once Jason is within 13 pixels across and 4 down, he swings. Each blow that lands takes 8 strength, plus one for each round you have won (jason_blow_lands). When the victim's strength falls below zero, they die with a scream.

    04 · The counsellors

    Five counsellors, each with a weakness

    The profile of each counsellor hints at a hidden weakness. In the code, the weakness is three numbers and a list of the weapons each one can use.

    CounsellorStrengthFear valueThe eleven objects, as this counsellor finds them

    From counsellor_strength, counsellor_fear, counsellor_colour and counsellor_weapons, drawn with the game's sprites. A crossed-out object is one this counsellor finds as another, shown in its place.

    Strength is what Jason's blows take away, and it is drawn as the weights on the bar in the panel. The fear value is added to your fear each time Jason attacks a friend, and twice over when you walk into a room with a body in it for the first time and the game decides, one time in five, to show it full screen (scare_check). Amanda frightens most easily and Gerry least.

    Weapons depend on who picks them up. When a counsellor takes an object, held_weapon_types turns it into the type this counsellor sees: Gerry can use all eleven. The others lose some of the short weapons, objects 3 to 6, and find them as another type: Wendy loses one, Amanda two, Bryan three, and Stuart all four.

    05 · Weapons

    Thrown, swung, and swung long

    At the start of each round start_play scatters ten weapons and a cross across eleven different rooms. Fire while standing picks one up, puts it down, or swaps it; fire while walking uses it.

    TypePictureUseStrength takenPoints for hitting Jason

    From object_sprite, weapon_damage and weapon_points; the score shows each point as 10. Types 7 and 9 have the same picture. Every frame of every weapon is on the Graphics tab.

    Types 0 to 2 fly across the room on sprite 4, 4 pixels a pass, until they leave the screen (weapon_fly). The others are swung, held out from the counsellor in three frames. A weapon that touches a person takes its strength off theirs (weapon_hits). Hit Jason and you score, and he unmasks and turns on you. Hit a friend and the danger clock jumps by 2.

    06 · The panel

    Fear, strength, and the danger bar

    The panel under the room is a text screen in the game's own characters. Move the sliders and the page runs the game's draw_panel and refresh_panel to draw it.

    The routines run unchanged on a copy of the C64's processor, over the game's memory at the start of play; the page then draws rows 18 to 24 of the screen in multicolour, with background 0 and shared colours 10 and 6, as the play interrupt sets them for the panel.

    The head is one of eight pictures, 128 bytes each at fear_heads, picked by your fear divided by 10 (draw_fear_head). The weights are a 32-byte slice of one picture at strength_picture, picked by your strength, and the danger bar is one column of pixels for every 2 on the clock (draw_danger_bar). Each of the ten others has a picture in its own colours, and a body in brown once dead. Take fear to 80: the head is the calm one, a bug told on Discoveries.

    The panel is split from the room by irq_play, which runs twice a frame. At line $B2 it turns bitmap mode off and moves sprite 6 into the weapon box to show what you hold; at line 256 it puts both back for the room.

    07 · The safe room

    A cross, and somewhere to hide

    One building room each round holds the cross, object 10. That room is the safe room, chosen at random from rooms 24 to 43 by pick_safe_room.

    Once you have walked into the safe room, touching a friend sends them there to shelter (send_to_shelter). The game sets safe_room_seen when it draws the safe room and clears it only at the next round, so the touch works in any room afterwards. A sheltering friend walks to the safe room and stays for 90 minus their exposure, counted down every 32 passes, earning a point for every step of the count (update_actors). Jason never picks a sheltering friend as a victim, and drops the hunt if his victim reaches shelter.

    Fire does nothing while you carry the cross outdoors. Pick it up and the safe room is gone: safe_object_room becomes $FF, and shelter_end sends everyone sheltering back out to wander.

    08 · Score and rounds

    Points, the bonus, and five rounds

    The score is six digits at score, stored least significant first, with a 0 added on screen, so every point the code adds shows as 10. Points come from hitting Jason, from friends counting down in shelter, and from the bonus at the end of a round.

    When Jason dies, round_won counts the friends still alive and adds 100 points, 1,000 on screen, for each, then moves you on to the next counsellor. After Stuart it starts again with Gerry. Each round won adds one to the strength every blow from Jason takes. A round won with nobody left alive pays more than one with nine survivors, a bug told on Discoveries.

    The round is lost when your strength falls below zero, with "YOU SEEM TO HAVE LOST YOUR HEAD. WHAT A SHAME......HA HA HA", or when the danger clock reaches $C0, with "YOU RAN OUT OF TIME BEFORE YOU FOUND HIM." Either ends the game: new_game shows the score and starts again from Gerry.

    09 · The introduction

    Title, licence, story, and portraits

    The first load, TITLE, is the introduction. It shows the title picture (on the Overview) while the scream plays, then three screens that each wait for a key, and loads the game with the last of them, the portraits, still on screen.

    The licence screen: FRIDAY THE 13TH is a trademark of Paramount Pictures Corporation
    Licence, as text.
    The story screen: you and nine friends at Crystal Lake holiday camp
    Story, as text.
    The five counsellors' portraits with their names
    Portraits, while the game loads.

    intro_start first moves the portraits picture out of the way, from $5F40 up to $8800, because the text screens need that memory for the font and the screen. It shows the title bitmap with its colours from $2DDC and $31DC and plays the scream from $3600. It then prints the licence and the story through the KERNAL (print_string), each waiting for a key that was not already held (wait_key). Last, it copies the portraits back into the bitmap (show_portraits), loads TITLE2 from device 8 (load_title2), and jumps to it at $0900.

    The story says you and nine friends are at the camp. The game has ten others besides you, because one of them is Jason.