openEtG is an unofficial Open Web fork of the Flash game Elements.
Open Terminal. All commands
will be done in Terminal.
- Install Homebrew
- Install required software:
brew install git node redis
- Clone the repository:
git clone https://github.com/serprex/openEtG.git && cd openEtG
- Install pixi.js:
curl -O --compressed 'http://etg.dek.im/pixi.min.js'
- Install npm modules and build project:
npm install && npm run build
- Start redis server in the background:
redis-server &
- Start node http server and open the game:
open http://127.0.0.1:13602 && npm start
- Since we open the page before thes server has fully started, you may need to refresh the page
- To stop the server, press ctrl+c in the Terminal
- Download and Install the following:
- Clone the repository:
- Right-click inside the folder where you want the game files to go
- Click
Git Clone
to create anopenEtG
folder - When prompted, use this URL:
https://github.com/serprex/openEtG.git
- Install pixi.js:
- Download pixi.min.js and place it in your openEtG folder
- Optionally, you can build your own pixi.js
- Install npm modules and global npm binaries:
- Shift+Right-Click on your
openEtG
folder - Click
Open command window here
- Run the command:
npm install; npm install -g spritesheet-js
- Leave this command window open for later
- Run
npm run build-etgify
- Download atlas.js, atlas.png and atlas.css and move them to the
assets
folder - Start redis-server
- In the command window from previously, run the command:
npm start
- Browse to http://127.0.0.1:13602 and the game should work!
Note: When you edit code you need to npm run build-etgify
to update etgify.