# Pirate Shooter A vertical scrolling pirate ship shooter built with Three.js. Sail across the open sea through endless waves of enemies, which get faster and more frequent over time. Your cannons fire 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 is the pirate-themed sibling of `@kentcdodds/space-shooter` and keeps the same gameplay. ## Playing - **Touch:** drag anywhere to sail. 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: - **Rowboats** go down in one hit and sometimes arrive in V formations. - **Sharks** zig-zag side to side and take two hits. - **Navy galleons** 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.