Skip to content

Build instruction

chinhodado edited this page Sep 2, 2014 · 4 revisions

How to compile

First, install node.js and tsc (the TypeScript compiler)

Then just compile:

tsc ./src/battleModel.ts --out compiled.js --removeComments --target ES5

How to run the simulation mode locally

Chrome

Close all running chrome instances first. Then start Chrome executable with a command line flag:

chrome --allow-file-access-from-files

On Windows, the easiest is probably to create a special shortcut which has added flag (right-click on shortcut -> properties -> target).

Firefox

Go to about:config

Find security.fileuri.strict_origin_policy parameter

Set it to false

Clone this wiki locally