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 Chrome or derivatives, e.g. Chromium and Opera, its the same steps but in addition you must start the browser with option --allow-file-access-from-files .

An alternative which works regardless of browser, is 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.