avoid being hit
point to shoot
max ammo: 404
I strongly recommend using a gamepad with dual analog thumbsticks. The game can be played with keyboard and mouse.
- Left stick to move.
- Right stick to shoot.
- WASD or ↑←↓→ to move.
- Left mouse button to shoot (in direction of cursor).
This is my entry for the 2020 js13kgames game jam. The goal is to create an HTML5 game in 13KB or less, in 30 days. Each year, there is a new theme, announced at the start of the competition.
The theme for 2020 is 404
.
This project depends on nodejs (for specific version, see .nvmrc). For Mac or Linux, I suggest installing nvm.
With nvm installed, do the following:
nvm install
nvm use
Install dependencies like so:
npm install
npm install -g gulp-cli
Build the app:
gulp build
Build and auto-rebuild on file changes:
gulp
The build process uses rollup.js to build main.js
. All other files are included via JavaScript import
statements. The code is minified and tree shaking is enabled, so any files that aren't imported won't be in the final script. I set it up this way for the least hassle during development.
Directory | Description |
---|---|
dist | Build outputs (html, css, js). |
src/css | CSS source files. |
src/assets | Non-code source assets, like png or wav. |
src/js | JavaScript source files. |
zip | Zipped build outputs (game.zip). This needs to be less than 13KB. |