Coder Social home page Coder Social logo

2021-js13's Introduction

Stay Safe -- GameJam Entry

Entry of the 2021 JS13K GameJam.
By Christian and Robin

Menu Screen

Gameplay

Description
Do you ever feel unpleasant when travelling through crowded places? Now that Corona has entered our everyday lives, this has become even more of a struggle: "Stay away from everyone else as far as possible. Stay safe!"

You may think to yourself: "This sucks! I can't wait to get home so I can stop thinking about this whole Corona stuff." So ... Why not bring the struggle home? With our fantastic game, you can relive your daily traumatic struggle of avoiding people and avoiding Corona!

Your objective: Stay away from everyone else as much as possible. Be careful: Q Anon people don't wear masks and therefore have a higher chance of infecting you. But don't worry: occasionally, you can pick up vaccines that will lower your likelihood of getting infected. Stay safe and keep your space!

Boilerplate

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

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.