My game entry for JS13K Games 2018 on the theme "Offline", and tribute to Micropose's 1993 submarine simulator Subwar 2050.
Special thanks to Mark Sparling who composed the musical track on Soundbox, Florent Cailhol who introduced me to Entity-Component-Systems and contributed some code optimizations, and Andrzej Mazur for running the JS13K Games competition year over year.
Enemy submarines have invaded your perimeter. Fight back and sink them all!
Turn your sonar online to locate your enemies, but beware that it gives your position away! Turn your sonar offline to disappear from their radar, and them from yours...
Arrow/WASD (ZQSD on French keyboard): Move your submarine. Space: Fire a torpedo.
F or O: Toggle your sonar online or offline.
P: Pause or resume the game.
npm start
This command builds game, opens a browser, watches the source code and livereloads the browser when source code changes.
npm run build
This command builds the game for submission (no sourcemap nor livereload script)
- Eoin McGrath for his original build script
- Peters and flo- for their pixel font from Glitch Hunter
- Ryan Malm for sharing his Twitter message code
- Maxime Euziere for his switch/case approach to handling game screens in update/render/input handlers
- Florent Cailhol for suggesting Terser in place of UglifyJS
- Marcus Geelnard for creating music tracker & player SoundBox