/witches-and-guns

JS game led in HomeTeamGameDev by Gonzalo from Oct 11 to Dec 6

Primary LanguageJavaScript

Witches ‘n Guns README

What is Witches ‘n Guns?

Witches ‘n Guns is an arcade-style twin-stick shooter built with HTML5 Canvas and Javascript.

It’s developed inside HomeTeam GameDev and meant to be a practice project.

Witches ‘n Guns will be made available for free and playable in-browser from itch.io.

How to run the game locally

Witches ‘n Guns uses Javascript modules and requires an HTTP server to run.

There’s a couple of ways to do this depending on the operating system (explained below), but if you happen to have Node.js installed and working on your system, you should be able to run the game like this: npx browser-sync -f .

Linux or macOS

Open a terminal and change to the game directory and run:

python -m SimpleHTTPServer 5501

(There’s a Makefile available that will run the game with the make command provided Node.js is installed and working.)

Windows

Python

  1. Install Python
  2. Open the game’s folder
  3. Hold the shift key and right click somewhere in the folder
  4. Select Open PowerShell window here
  5. Run python -m http.server
  6. Go to http://localhost:8000/ in your browser

VSCode with LiveServer extension

If you use VSCode, you can install LiveServer and then click the “Go Live” button on the bottom right.

  1. Set up Node.js
  2. Open the game’s folder
  3. Hold the shift key and right click somewhere in the folder
  4. Select Open PowerShell window here
  5. Run npm i --save-dev browser-sync
  6. Run npx browser-sync -f .

Only the last step needs to happen every time you need to run the game.