- Open a terminal
- Clone the repository
git clone https://github.com/Brunni132/lewagon-workshop-game
- Move into the directory:
cd lewagon-workshop-game
- Install the NPM (node) modules
npm install
- Run the visual game editor
npm run editor-open
- Open the folder with Visual Studio Code and start editing
src/game-main.js
.
Windows:
- You need to have Git for Windows to clone the git repository. If you don't, it will say something like this:
'git' is not recognized as an internal or external command, operable program or batch file.
- Opening a terminal can be done by opening the start menu and typing "bash" and opening the application
Git Bash
. - If
npm
doesn't exist (the commandnpm install
says that'npm' is not recognized
), you need to install Node.js. One easy way to go is via Scoop (see the section below).
Mac:
- On Mac, open a terminal by pressing Command+Space, type Terminal, Enter.
- Make sure that you have Homebrew, which you can download here.
- Warning: the installation can be time consuming and require a good internet connection, so make sure that you do it early.
- If you don't have Node.js (npm install fails), type the following in the terminal:
brew install nvm
nvm install 8
- Open powershell (start menu, type Powershell), then
Set-ExecutionPolicy RemoteSigned -scope CurrentUser
iwr -useb get.scoop.sh | iex
- This installs Scoop, which is a package manager for Windows, allowing you to install and remove easily open source software. It's an equivalent to homebrew on Mac. Then type:
scoop install nvm
nvm install 8
nvm use 8.16.2