forked from domasx2/banditracer-client
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathREADME
64 lines (40 loc) · 1.68 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
Quick start
============
Create `javascript/settings.js` by copying `javascript/settings-example.js'
(no change to file necessary for single player).
Open `index.html` with Firefox or Safar (other browsers can only play the game
if this directory is served via http://).
Or: Install banditracer-client with RingoJs
-----------------------------------------------------------------
Install RingoJs <http://ringojs.org/getting_started>
$ ringo-admin install domasx2/banditracer-client
$ ringo-admin install hns/stick
Start the banditracer-client webserver:
$ ringo -e "require('banditracer-client').startUp()"
Access the game at: <http://localhost:8080/>
Map Editor
===============
requires:
* python 2.5+
* wxPython
* PIL
* simple json
$ python editor.py
You can select objects with left mouse button and delete them with
delete key, use mousewheel to rotate props / car starting positions
before placing them. Tiles are not rotatable.
Your own dedicated multiplayer server
=======================================
see https://github.com/domasx2/banditracer-server
Pack Js files
==============
To improve the loading behaviour, use GameJs to wrap your app and the library
into `gjs-app-wrapped.js` and load that file.
$ gamejs/wrap-directory.sh ../banditracer-client/javascript/
...then fix banditracer's index.html to use `gjs-app-wrapped.js`.
See gamejs/docs/deployment in the gamejs distribution for more info.
Repack GameJs
==============
To update the gamejs version used, re-wrap GameJs and copy it into the `banditracer-client/public` directory:
$ ~/gamejs/wrap-gamejs.sh
$ cp ~/gamejs/examples/skeleton/public/gamejs-wrapped.js ~/banditracer-client/public/