A downloadable asset pack

Buy Now$7.00 USD or more

The world ends in 30 days. Here's every line of code that makes that happen.

This is the complete, commented source code of Prepper, a free narrative survival-management browser game, written in plain JavaScript with Phaser 3 and no build step. Each day you listen to the morning radio show, pick three errands around a small lake town, scavenge, trade, recruit neighbors and build your bunker. Then on Day 30, the apocalypse shows up.

👉 Play the free game first, so the surprises stay surprises: https://bluewater78.itch.io/prepper

It's plain JavaScript on Phaser 3.90 (included). There's no npm, no bundler and no build step. Unzip it, run python3 -m http.server, and it's running in your browser.

What's inside

  • The full game loop: a day and phase system, a map with errands, scavenging, traders, neighbors and recruiting, bunker building, the night phase, multiple endings and the post-apocalypse survival stretch
  • Data-driven content: radio lines, scavenge events, night events, items, neighbors, traders and map pins all live in plain data files in js/data/. You can add a new radio line or event by copying an entry and editing it
  • Perks, achievements, unlocks across runs and a Field Guide
  • One place for difficulty: TUNING in js/config.js holds supplies, odds, prices and survival numbers
  • All of the painted art (backgrounds, map, portraits and icons) and the fonts are bundled, and the audio is synthesized in code
  • Tap and click UI that scales to any screen, including phones, with saves in localStorage
  • A beginner README with how to run it, a map of every file, where to tune the difficulty, how to add radio lines, events, neighbors and items, how to swap the art and sound, a checklist of what to replace before you release your own game, and how to publish free on itch.io or GitHub Pages
  • A self-contained Playwright boot test (optional)
  • About 18,000 lines of readable JS in 60 files
  • ⚠️ Spoilers: the source includes every secret in the game. Play it first!

Who it's for

  • People who want to make a story-heavy or management game and want to see how a finished one is structured
  • Phaser and JS devs who want working patterns for data-driven events, multi-scene flow, run-based unlocks and save data
  • Writers and designers who'd rather edit content files than engines
  • Teachers and code clubs

License (short version)

  • ✅ You can use the code in your own games, free or commercial, as many as you like. No credit required.
  • ✅ You can use the code-drawn textures and the synthesized sound too.
  • 🔒 The name "Prepper", the painted art in assets/, the characters (Biscuit and the cast), the town and the story and dialogue are for learning and personal use only. Swap in your own before you release. The README shows you how.
  • ❌ You can't resell or redistribute this pack (or a lightly reskinned copy) as source, a template or an asset pack.
  • Full plain-English terms are in LICENSE.txt. Phaser is MIT, and the fonts are OFL or Apache 2.0 (see THIRD-PARTY.md).

Made with AI

Prepper's code, sound and text were written with Grok Build (AI coding). All of the painted art was made with Grok Imagine (AI image generation). The game was directed, play-tested and tuned by BlueWater78. We're saying this up front so you know exactly what you're buying.

New to this? The code in this pack was written by AI from my plans. My plain-English guide explains how Prepper was planned, prompted, tested and fixed in stages, including the prompt that loaded its hosted art. It pairs well with this pack.
How I Made 6 Browser Games with AI: https://bluewater78.itch.io/how-i-made-6-games-with-ai (also on Gumroad: https://bluewater78.gumroad.com/l/olxrdg) 

Purchase

Buy Now$7.00 USD or more

In order to download this asset pack you must purchase it at or above the minimum price of $7 USD. You will get access to the following files:

prepper-source.zip 5.2 MB

Leave a comment

Log in with itch.io to leave a comment.