Skip to content

Repository files navigation

🎮 Jump & Run — Fabric for Kids

A vibe-coded jump & run game that runs inside a Microsoft Fabric notebook.

📝 Blog post: Jump & Run — Fabric for Kids

▶️ Play online (desktop & mobile)

kornalexander.github.io/jump-and-run

Runs straight in the browser — no install. On phones and tablets it shows on-screen touch controls (D-pad + Jump + Attack) and prompts you to rotate to landscape. 100 levels across 10 themed stages, each stage with its own distinct mix of layout archetypes (stairs, towers, islands, dragon ferries, ruins, cascades, causeways …).

The Story

My kids and I built this game over the weekend. It started as a Python/Pygame script, but I wanted to embed it into Microsoft Fabric — so I switched to HTML5 Canvas. Embedding was one line:

displayHTML(open("./builtin/jump_and_run.html").read())

Upload the HTML to Lakehouse → displayHTML() → game runs inside the notebook.

Since we were already in Fabric, I took it further: the game tracks stats (score, deaths, coins, jumps, duration) as JSON after each round. A second notebook cell saves them to a Delta table — turning a kids' game into a full analytics pipeline.

Controls

Key Action
Arrow Keys / WASD Move
Space / Up / W Jump
F Attack (Lightning / Sonic Wave)
Stomp Land on enemies from above
Touch On-screen D-pad + Jump + Attack buttons (mobile)

Files

File Description
jump_and_run python game basis.py Original Python/Pygame version
jump_and_run.html HTML5 Canvas version (embeddable in Fabric)
jump_and_run_v2.html V2 — 100 levels, 12 layout archetypes, audio, particles, smooth camera, touch controls
index.html GitHub Pages entry point (same as jump_and_run_v2.html)
Jump and Run.ipynb Fabric notebook — play, save stats, view summary

Stats Pipeline

The notebook has 3 cells:

  1. Play — renders the HTML game via displayHTML()
  2. Save — paste the game-over JSON, click Save → appends to game_stats Delta table
  3. Summary — shows all games, win rate, high score, total playtime, and more

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages