Skip to content

About

A free, open-source 3D browser survival game. Turn scrap into weapons and survive the scrapyard.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Junk Magnet — endless scrapyard survival

Junk Magnet

A tiny robot. An endless scrapyard. Your enemies become your ammunition.

Collect wreckage, build an orbit of scrap, and survive increasingly chaotic waves in this 3D browser game. Online co-op is temporarily hidden while performance issues are being fixed.

Play Junk Magnet

  • Build your scrap storm: automatic weapons, seventeen abilities, twelve weapon specializations, and six weapon evolutions. Reroll or banish level-up choices you don't want.
  • Bring a helper: switch your drone between collecting, repair, and guard roles. Upgrade each role separately across three ranks. Collector rank 3 unlocks cluster pulls, Repair rank 3 stores one emergency heal per run, and Guard rank 3 unlocks slowing shots.
  • Explore the yard: bosses, elite enemies, supply chests, repair stations, and salvage contracts. Survive to 15:00 and defeat the Scrap Colossus to clear the stage and unlock the Night Shift.
  • Come back tomorrow: a new Daily Shift challenge every day with a streak bonus, and 31 work orders that pay parts.
  • Upgrade between runs: four robots, eight permanent workshop upgrades, and locally saved progress.
  • Play your way: keyboard or touch, six languages, adjustable graphics, and reduced-motion support.

Built with TypeScript, Three.js, Vite, and original Blender models. Co-op runs on Node.js and WebSockets.

Play locally

Use Node.js 22.12+ and npm.

npm ci
npm run dev

Open localhost:5184/play/ and choose Play. The landing page, with Play and GitHub links, is at localhost:5184.

Action Control
Move WASD, arrow keys, or drag on touch screens
Attack Automatic — collect scrap to reload
Choose an upgrade Click, tap, or keys 1–3
Reroll or banish a choice R or X, or the buttons on the level-up sheet
Change drone role Q or tap the helper drone card
Pause solo Escape or the pause button

Solo pauses during upgrade selection; co-op keeps running. Workshop progress saves in your browser. An unfinished solo run survives a reload or a closed tab: choose Continue on the main menu.

Play together

Co-op is disabled by default. For development, enable it when building and start the co-op server:

VITE_COOP_ENABLED=true npm run build
npm run serve

Open localhost:5185/play/, choose Play Together, and share the room code with a friend using the same hosted game. To play over the internet, deploy the Node server with WebSocket support. See co-op setup and hosting.

Sound and music

Sound effects and music are enabled by default and start on your first interaction. Settings has independent toggles, volume sliders, and −/+ buttons for each; your preferences are remembered. Both volumes default to 50%.

The game uses 22 CC0 effects and separate menu/gameplay music loops. See audio credits for sources and licenses, and the audio guide for conversion, event mapping, and mixing. Run node scripts/audio-browser.mjs against a production preview (or set GAME_URL) to check playback, controls, and persistence.

Development

npm test              # Simulation and gameplay tests
npm run test:coop     # Co-op session and server tests
npm run build         # Type-check and production build

Technology and tools index · Asset pipeline

Gameplay guide · Development and artwork · Verification notes

How the characters are built

Analytics setup and event catalog · PostHog chart definitions

Production domain and deployment: playjunkmagnet.com.

CrazyGames release: npm run publish:crazygames. Agent-driven release.

This is a playable prototype; balancing and physical-device testing are ongoing. No accounts. The site has no ads. The CrazyGames build integrates the CrazyGames SDK for loading/gameplay events, cloud saves and muting, and can offer optional rewarded ads, which stay switched off until Full Launch (details). Third-party licenses are in public/licenses; cover provenance documents the generated promotional artwork.

License

Original project code and assets are available under the MIT License. Third-party fonts, audio and libraries retain their respective licenses in public/licenses.

About

A free, open-source 3D browser survival game. Turn scrap into weapons and survive the scrapyard.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages