Skip to content

Latest commit

 

History

History
52 lines (32 loc) · 1.74 KB

README.md

File metadata and controls

52 lines (32 loc) · 1.74 KB

js13kGames 2020

Platformer Game for js13kGames 2020.

After so many years of mystery, the time has finally come. Help our hero to recover all humanity missing socks at the hand of evil washing machines in 404 sock not found.

js13kGames Rollup Boilerplate

Starter boilerplate for js13kgames Game Jam using Rollup.

Getting Started

Requirements

  • Node.js >= v10
  • Zip (compatible with info-zip command line).
  • AdvZip.

Commands

Development mode:

npm start

It will open the browser, rebuild on changes and reload the browser.

Production mode:

npm run build

It will minify, compress and inline styles and scripts in a single html file. It will also zip the file.

The generated files will be available in the dist directory.

Development notes

The entry point for the application is the file src/index.js, from there any import will be automatically solved by rollup including external dependencies installed in node_modules folder. This includes css files thanks to postcss.

The file src/index.html will be used as a template for the final bundle.

The files src/index.js and src/index.html are mandatory for the scripts to work.

In production mode:

  • The javascript code is optimized thanks to terser.
  • The javascript and styles bundles are inlined in a single html file thanks to html-inline (and minified thanks to html-minifier).
  • The zip file will only contain the single inlined html bundle.

Credits

Jerome Lecomte for his original boilerplate from which I based this one.