Free to Learn

Frame Perfect

Step Kettle into a wall, one frame at a time

Kettle is the course's small platformer. Every picture here is the game itself, run from the same code the course's checks run. This is level 2, frame 63 of a run found by breadth-first search, the search you write in the course. Kettle is in the air, moving right at 6 px a frame, toward a wall one tile (8 px) thick and too tall for Kettle to clear from this height.

What happens when Kettle reaches the wall?

Beat level 1's par by hand, with on-screen buttons and frame advance.

What you build

Each level sets a par, a frame count to beat; level 2's is 100 frames. With the game working as its makers meant, the best run takes 186. Over eight lessons you write the tools speedrunners use, in JavaScript for Node, and use them to find the two bugs that make par possible:

The last lesson is level 3, which no other lesson shows; you finish it with the toolkit you built and nothing else. You back every claim with a movie, and code you didn't write replays it on the untouched game.

Start the course

You need Node.js 22 or newer and to write JavaScript for Node comfortably: functions, loops, arrays, Map and Set, and modules. On a computer, clone the public project and open lesson 01 in your terminal:

git clone https://github.com/itsHabib/free-to-learn.git
cd free-to-learn
git switch --detach ec2d659ea97b56bcb4e003eaf36b4e99e5c3ca89
cd courses/frame-perfect
node lab.mjs lesson 01 ./work

Open the project on GitHub · Read lesson 01