Dino run
A runner you can really play: the seed fixes the obstacle plan (gaps shrink as the run goes on) while the dino stays put and obstacles approach at the speed you set (12-48 units/s). Up jumps and Down ducks, the jump follows real physics (9 units/s launch, 22 units/s² gravity) and collisions are rectangle intersections - jump cacti, duck under low birds, never jump into a high bird. The distance integrates real frame deltas and the frame counter and fps come from requestAnimationFrame, so pausing really freezes the run.
Runs in your browserEvery computation happens in your browser — your data never leaves this device.
Dino run
Press Up / W / Space to jump and Down / S to duck: cacti must be jumped, low birds must be ducked under, and high birds must not be jumped into. One crash ends the run.
- Distance
- 0
- Score
- 0
- Dodged
- 0
- Height (units)
- 1.00
- Frames rendered
- 0
- Measured fps
- -
Keyboard: Up / W / Space = jump, Down / S = duck (release to stand up), P = pause or resume. Clicking the canvas also jumps.
Distance: 0 · running
Frames rendered: 0 · Measured fps: -
Obstacle seed: 72497
Obstacle plan (generated from the seed)
The same seed gives exactly the same plan; gaps get shorter with the index, so the run gets harder.
#1 cactus (0 units off the ground, 1.05 tall), gap 10 #2 cactus (0 units off the ground, 1.05 tall), gap 13 #3 cactus (0 units off the ground, 1.05 tall), gap 16 #4 cactus (0 units off the ground, 1.35 tall), gap 13 #5 cactus (0 units off the ground, 1.05 tall), gap 13 #6 bird (1.6 units off the ground, 0.5 tall), gap 17 #7 bird (1.6 units off the ground, 0.5 tall), gap 16 #8 cactus (0 units off the ground, 1.35 tall), gap 15 #9 cactus (0 units off the ground, 1.05 tall), gap 13 #10 cactus (0 units off the ground, 1.05 tall), gap 15 #11 cactus (0 units off the ground, 1.05 tall), gap 16 #12 cactus (0 units off the ground, 1.05 tall), gap 15
Run log
Distance: 0
Not running yet: press "Jump" or click the canvas to start.
What this tool does
- Practise a real runner: jump cacti, duck under low birds and stay on the ground for high birds - one crash ends the run.
- Replay one obstacle seed and see who gets further; the speed control (12-48 units/s) sets the difficulty.
Example
Input
Seed demo, speed 20, pressing nothing (just standing and running)
Output
Status: Hit obstacle #1 · distance 9 · score 9 · dodged 0 Run log: obstacle #1 (cactus) hit at distance 9, score 9. First three obstacles: #1 cactus (0 units off the ground, 1.05 tall), gap 10 / #2 cactus (0 units off the ground, 1.05 tall), gap 13 / #3 cactus (0 units off the ground, 1.05 tall), gap 16
Frequently asked questions
How do I play?
Up / W / Space jumps, Down / S ducks (release to stand up); there are also Jump and Duck buttons, and clicking the canvas jumps. Jump cacti, duck under low birds (0.85 units off the ground) and stay on the ground for high birds (1.6 units) - jumping into a high bird crashes. One hit ends the run.
Is the jump real physics?
Yes: 9 units/s launch speed and 22 units/s² gravity give an apex of about 1.84 units and 0.82 s of airtime, and there is no double jump. Collisions are rectangle intersections: the dino box (1.0 standing, 0.55 ducking) must really overlap the obstacle box.
Is the randomness reproducible?
Yes. Gaps, kinds, ground clearance and heights all come from the seed, so every obstacle of one seed is identical; the page also shows a five-digit seed print and the first twelve plan entries. Only a different seed changes the sequence.
Are the speed and frame figures real?
Yes. Obstacles approach at the speed you set (units per second); the frame counter is incremented once per requestAnimationFrame and the fps is the reciprocal of the measured frame interval; the distance integrates real frame deltas, freezes when paused, and never advances more than 60 ms per frame after a tab switch.
What does this tool not do?
No multiplayer and no network: it is a local single-player runner and every decision is computed in the browser.
Keywords:dino run