🪜 HUNDRED FLOORS

Drop from floor to floor — miss and you fall, land on the 锯齿 and you bleed

← Back to Fun Time
Floor
1
Blood
10 / 10
Score
0
Deepest
0

⌨️ Controls

  • or A D walk — hold them down
  • On a phone: hold your finger on the left or right half of the shaft
  • There is no jump. You go DOWN by walking off an edge.
  • P pause  •  R new game
  • 🎮 Xbox controller? Just plug it in or pair it — the stick and D-pad are the arrow keys, A is SPACE, Menu pauses and View starts again

🎯 How to play

  • Keep landing on the platforms. Miss them all and you fall off the bottom — that is the end.
  • The view keeps sinking, so standing still pushes you up into the spiked ceiling.
  • Land on a platform with 锯齿 sawteeth and it costs you two blood.
  • Ten blood. Five spiked landings and you are finished.

🪜 The six platforms

  • Plain — a solid bar. Perfectly safe.
  • 锯齿 spiked — sawteeth on top. Avoid these.
  • Arrows — a moving floor that carries you that way.
  • Coil — a spring, and it throws you straight back up.
  • Dashed — it crumbles away a moment after you land.

🧑‍💻 For young coders: build this game yourself

This game is split into small library files inside funtime/lib/, and every function has a comment saying exactly what goes in, what comes out, and the algorithm in plain English. Empty any function out, read its comment, and write it yourself.

File What it does Good functions to try re-writing
lib/floors-rules.js The rules: the camera, the landings, the six kinds screenY, cameraSpeed, landsOn, landOnPlatform
lib/floors-draw.js Painting the shaft, the 锯齿 and the blood bar drawSawteeth, drawPlatform, renderGame
lib/floors-main.js The glue: the held keys, the touch halves, the loop doAction, connectBoard, gameLoop

💡 The big idea: the world stays still and the camera moves. It is tempting to slide all the platforms upwards instead — until you notice that anybody standing on one has to be dragged along too, so hurrying the view would physically fling the player into the ceiling. Move the camera and nothing in the world is disturbed at all.

🛠️ Want to be walked through it? Build Hundred Floors Yourself takes you through the key functions one step at a time and tests each one you write. There is a Python version too.