# Space Shooter A vertical scrolling spaceship shooter built with Three.js. Fly your ship through endless waves of enemies, which get faster and more frequent over time. Your ship fires automatically, and you have three lives. ## Intent A simple, fun browser game that works equally well on a phone or a desktop. It has simple mechanics (no enemy attacks and no weapon upgrades; enemies only hurt you by crashing into you) and simple low-poly assets built in code. It has a pirate-themed sibling, `@kentcdodds/pirate-shooter`, with the same gameplay. ## Playing - **Touch:** drag anywhere to fly. The ship follows your finger's movement, so your thumb never covers it. - **Desktop:** move the mouse, or use the arrow keys or WASD. - **P** or **Escape** pauses, and **M** toggles sound. Enemies: - **Drones** (red) go down in one hit and sometimes arrive in V formations. - **Weavers** (purple rings) swerve side to side and take two hits. - **Tanks** (amber) are slow and take five hits. ## Running locally ```sh npm install npm run dev ``` `npm run build` type-checks and builds a static site into `dist/`. ## Hosting on Kody Publishing the package serves the game as a Kody package app. `src/app.ts` renders the page, Kody compiles `src/main.ts` into the browser module, and `public/` is served as static assets.