Chapter 1 of 6

The Spirit Crossing

Score0
Ofrenda

Tap to continue ▸

Día de los Muertos

The Lost SoulA DAY OF THE DEAD ADVENTURE

A small new spirit wakes up in Mictlán, the Land of the Dead, with no memory of who she was. Follow the trail of light, meet the figures of old legends, and find the family who is waiting for her.

How to play

  • Move: hold ▶ / ◀, or use the arrow keys (A / D). Luz always stays on the mathematical trail.
  • Jump: tap JUMP, or press Space / W, to grab floating things and hop over obstacles.
  • Story: tap the dialogue box (or press Enter) to continue. "Skip scene" skips a conversation.
  • Six chapters: each place has a character, a legend and two challenges. A glowing barrier keeps the path closed until you finish them.
  • Missed something? Walk back. You can never get stuck, and obstacles only bump you back a little.
  • f(x) button: switches between Game Mode and Math Mode (grid, equations, vertices and endpoints). Shortcut: M. Pause: P.

School project

The Mathematics Behind the Journey

The trail is a piecewise function: six pieces, each with its own equation and its own interval of x values. The game calculates every point of the trail from these equations.

1. Linear functions

A linear function has the form y = mx + b. Its graph is a straight line, and the slope m is the same everywhere: x goes up by 1, y changes by m. The trail has three: y = 0 (slope 0, flat), y = 3x − 12 (slope 3, uphill bridge) and y = −3x + 24 (slope −3, downhill candle trail).

2. Quadratic functions

A quadratic function in vertex form is y = a(x − h)² + k. Its graph is a parabola with vertex (h, k). If a < 0 it opens downward (an arch). If a > 0 it opens upward (a valley). A larger |a| makes it narrower. The trail has two arches with a = −3, vertices (3, 3) and (9, 3), and one valley with a = 4, vertex (6, −1).

3. How six equations make one trail

Each equation is used only on its own interval, in order from x = 0 to x = 10: flat start, arch, ramp up, valley, ramp down, final arch.

4. Why domain restrictions are needed

On its own, every equation goes on forever. For example, y = 3x − 12 keeps rising past x = 5. Restricting it to 4 ≤ x ≤ 5 keeps only the piece we need, so pieces never overlap and every x has exactly one y.

5. How the endpoints connect

Each piece ends exactly where the next begins. The game checks this when it loads, using the real equations:

    6. How coordinates move the spirit

    Luz's position is a math point (x, f(x)). To draw it, the game converts math coordinates to screen pixels with screenX = centerX + (x − cameraX)·k and screenY = centerY − (y − cameraY)·k. The same scale k is used for x and y, so no curve gets stretched. The minus sign flips y, because screens count downward. Luz moves by distance along the curve, so she travels at a steady speed even on steep parts.

    Chapter

    The Spirit Valley · vertex (6, −1)

    Memories of the spirit lights

    Watch the order the lights glow, then tap the symbols in the same order. Each pattern returns one of Luz's memories.

    Memory 1Memory 2Memory 3

    Paused

    Your progress is saved while this page stays open.

    The end · thank you for remembering

    ¡Bienvenida a casa, Luz!

    Every offering you gathered now shines on the ofrenda, and the family is telling stories about Abuela Luz.

    Final score0
    Objects0
    Petals0
    Time0:00