How to play downloaded HTML5 games

Playing my HTML5 games offline is very easy.

Firefox or derivatives, e.g. Pale Moon:

  1. Download the game .zip and unpack it into a directory <gamedir>.
  2. In the browser open (CTRL + O) the index.html in <gamedir>.

For all other browsers, e.g. Chromium, Opera, Chrome you need a local webserver, we will use python:

  1. Download the game .zip and unpack it into a directory <gamedir>.
  2. Open a console
  3. cd <gamedir>
  4. python -m SimpleHTTPServer 8080
  5. In the browser type: http://localhost:8080
You can use a different port as in the example.