On a Mac
Get gamejs by github clone
./bin/build.sh works fine
Using python's simple web server
cd ./examples
python -m SimpleHTTPServer 8080
Using a browser (firefox for me)
http://localhost:8080/Shows a directory listing of the example subdirectories.
Click on skeleton subdir / link
* URL shows
http://localhost:8080/skeleton/* browser window is stuck on Loading..... with blue pacman background gif
* python console shows something was requesting /skeleton/javascript/gamejs.js but got a 404
Console output here
JoelS$ python -m SimpleHTTPServer 8080
Serving HTTP on 0.0.0.0 port 8080 ...
1.0.0.127.in-addr.arpa - - [13/Apr/2013 13:16:04] "GET /skeleton/ HTTP/1.1" 200 -
1.0.0.127.in-addr.arpa - - [13/Apr/2013 13:16:04] "GET /skeleton/public/yabble.js HTTP/1.1" 200 -
1.0.0.127.in-addr.arpa - - [13/Apr/2013 13:16:04] "GET /skeleton/public/gamejs.min.js HTTP/1.1" 200 -
1.0.0.127.in-addr.arpa - - [13/Apr/2013 13:16:04] "GET /skeleton/javascript/main.js HTTP/1.1" 200 -
1.0.0.127.in-addr.arpa - - [13/Apr/2013 13:16:04] "GET /skeleton/public/ajax-loader.gif HTTP/1.1" 200 -
1.0.0.127.in-addr.arpa - - [13/Apr/2013 13:16:04] code 404, message File not found
1.0.0.127.in-addr.arpa - - [13/Apr/2013 13:16:04] "GET /skeleton/javascript/gamejs.js HTTP/1.1" 404 -
It makes me wonder if this line in main.js
var gamejs = require('gamejs');
is confused about using the game.min.js file and is unable to use that properly?
------HACK---------------
This problem can be resolved by copying the lib/gamejs* structure down into the javascript subdir of each example.
cd /examples/sprite/javascript
cp -r ../../../lib/* .
Now it will work. But this can't be the right way to run it ;)
Joel