Sightline - Internet Explorer
Address
https://freetolearn.world/sightline.html
free to learn.world
← Course Directory

Terminal project · 8 modules · Free

Sightline

Build an engine that works out a small game from its memory and compiled code (WebAssembly, a compact binary code format browsers run at near-native speed), then aims and keeps hitting as the game gets harder to read.

Get the course on GitHub

Interactive 3D · Arcs, scrambled memory and checks

See how an engine reads a game and checks what it found

Start here

This course ships two small artillery games, where a cannon fires shells at a target. You build an engine (a program) that figures out how to aim by reading the game’s files and memory, not the screen, and keeps working as each level makes the game harder to read. Step through the picture below: a shell’s curved flight, wind blowing it off course, finding the aim angle in memory, a level that scrambles that value, and the checks the engine runs before trusting anything.

Words used in the picture:

Arc
The curved path a shell follows as gravity pulls it down.
Least squares
A way to fit a curve: pick the one whose total squared distance from the measured points is smallest.
Memory
The game’s working storage: a long row of numbered slots holding numbers.
Snapshot
A copy of the game’s memory at one moment.
Bit
A single 0 or 1. Every stored number is a row of bits.
XOR
An operation that flips each bit wherever a key has a 1. Applying the same key twice gives back the original.
Round key
The number the game XORs with its values. It changes each round.
+92
The key’s position: 92 bytes (23 four-byte slots) after the start of the game’s state.
Verification rung
One independent test a finding must pass before the engine relies on it.
Step 1

Loading the picture…

The step-by-step explanation appears here when the page’s script runs.

    The course ships its own two small games, and the lab runs them. Your engine reads a game’s file and memory and never runs the game itself.

    What you’ll learn
    Memory scanning, decoding WebAssembly, lifting compiled functions into expressions, least-squares fitting, and testing each finding against the game before relying on it.
    Your project
    Your own engine, which climbs ten levels of two small artillery games. Each level breaks something the engine relied on, and the last three are a game it has never seen.
    How you’ll work
    8 modules · 89 checks. Read each lesson in a local browser view (with a live trajectory and a WebAssembly HUD inspector; HUD means heads-up display overlay) or in the terminal. Write the engine’s nine files in JavaScript and check each step with Node.

    Interactive Sightline Lab

    Why does a raw float scan lose an XOR-scrambled angle?

    This HUD (heads-up display overlay) shows the game’s memory beside the shot. A float, or f32, is a 32-bit decimal number. *0x13120 -> 0x10A40 means the pointer at hex address 0x13120 holds the state address 0x10A40. A struct is a set of grouped fields in memory, and +0, +4 or +92 counts bytes from the start of the game’s state, so +92 is 92 bytes (23 four-byte slots) in. Slice Lead means aiming ahead of a moving flag.

    Level 4 moves its state pointer every round and XORs each value with a round key at +92. Predict what happens when you press ArrowRight (the Right Arrow key) before unlocking the live Aimbot HUD.

    ANGLE 46 POWER 60 WIND +2.5
    *0x13120 -> 0x10A40 · +0 angle_raw = 0x973ECFB5 (f32: -6.2e-25) · +92 key = 0xD506CFB5
    You press ArrowRight (+1°). How many memory slots rise by +1.0 in a float scan when values are XOR-scrambled?

    What you’ll build

    Following pointer 0x13120 to the relocated struct and XORing field +0 with round key +92 to decode float angle 45 and 46.
    • A memory search and a set of experiments that find where the game keeps the angle, the power, the wind and the flag, and an aim fitted to practice shots.
    • A decoder for the game’s WebAssembly and analysis passes that lift its functions into expressions. From them the engine builds a shot simulator, a reader for state that moves and is scrambled, and the flag’s path.
    • A loop that keeps every level inside its budget of rounds and shots. A small decision model picks what to test next from a menu your code writes, and the course measures its picks against a heuristic (a practical scoring rule) you write.

    The game, Lob, is an artillery game written in C and compiled to WebAssembly. Anti-cheat engineering (Lessons 10–15) defends the same game. The two courses are a pair so each side can be measured against the other. If you take both, that course’s last lesson explains how a small adapter, which you write and no check runs, lets your engine play against your own server.

    Build a time-travel debugger (Lessons 08–13) debugs the same game from the inside.

    Before you start

    You should be comfortable writing JavaScript for Node, with functions, arrays, objects, ES modules and async/await. The maths is high-school algebra, square roots, sine and cosine. Hexadecimal and bits are taught where they’re first needed, and no WebAssembly, reverse engineering or machine learning background is assumed.

    The course asks for Node 22 or newer and a terminal. It was tested with Node 26.5.1 on macOS, from a fresh clone with an empty environment. Nothing needs a package install, an account, an API key or a network connection. Every check runs offline. Asking a real decision model is optional. It runs on your own computer through Ollama, a program that runs language models locally, and no check uses it.

    The course covers its two games and nothing else. It doesn’t teach native programs, real games or getting past anyone else’s protections. Three AI learners finished every module from a fresh copy. No person has taken the course yet, and the 23-hour estimate is the author’s guess.

    Clone and start

    Clone the learner source, check out this edition and enter the course folder. Then open lesson 01 or the live HUD inspector in a browser, or read in the terminal.

    git clone https://github.com/itsHabib/free-to-learn.git
    cd free-to-learn
    git checkout da6e69a94c9f1c62fd3aec36954205bf3dd6e81f
    cd courses/sightline
    node lab.mjs serve
    node lab.mjs lesson 01 ./work

    serve prints a local address; open it to read the lessons, answer the practice questions, and step through the live trajectory and WebAssembly HUD inspector (/hud). lesson prints the same lesson in the terminal and works before work/ exists. Don’t create work/ yet: lesson 01’s section “Choose how to start” gives the routes, and each one refuses a folder that already exists.

    Write the important parts: type each listing the lesson prints into a marked region of your files.

    node examples/start-01.mjs ./work write
    node lab.mjs check 01 ./work

    All 11 checks fail with “not written yet” until you write the code.

    Start from working code: read each listing in your own file and run the command after it.

    node examples/start-01.mjs ./work supplied
    node lab.mjs check 01 ./work

    Every lesson, 01 to 08, has its own start command with the same two routes, and each ends with a break-and-repair task and a new case you write yourself. Each failed check names the requirement, shows what your code returned and what was required, and points to the lesson section that covers it. node lab.mjs --help lists every command, and API.md gives every function you write.

    The files in lessons/ hold the same text with a marker where each practice question goes. A pass shows your code met the checks’ cases. It doesn’t show that you learned what the lessons teach.

    Exact learner source

    The commands above use learner edition da6e69a94c9f1c62fd3aec36954205bf3dd6e81f (also downloadable as sightline.zip). This static page runs an illustrative client-side preview above and doesn’t grade your course files.

    Browse this exact course source

    Give site feedback →

    Course overviewInternet
    Mission.txt - Notepad

    Learning without paywalls.

    Find what people pay to learn.
    Build a great course. Give it away.

    One course at a time.

    Usage & privacy

    Start