api getMaps for create channel

This commit is contained in:
Jeena 2014-07-03 20:28:18 +02:00
parent a837d2099c
commit 6bc9b7e32b
8 changed files with 509 additions and 1658 deletions

View file

@ -4,7 +4,7 @@ define([
"fs"
],
function (Parent, Settings, fs) {
function (Parent, Settings, FileSystem) {
function Level (uid, engine, gameObjects) {
Parent.call(this, uid, engine, gameObjects);
@ -15,7 +15,7 @@ function (Parent, Settings, fs) {
Level.prototype.loadLevelDataFromPath = function (path, callback) {
// overwriting parent
fs.readFile(path, "utf8", function (err, data) {
FileSystem.readFile(path, "utf8", function (err, data) {
if (err) throw err;
callback(JSON.parse(data));
});

View file

@ -71,7 +71,7 @@ define(function() {
CHANNEL_END_ROUND_TIME: 4, //10,
CHANNEL_DEFAULT_MAX_USERS: 40,
CHANNEL_DEFAULT_SCORE_LIMIT: 10,
CHANNEL_DEFAULT_LEVELS: ['stones2', 'debug', 'stones2', 'debug'],
CHANNEL_DEFAULT_LEVELS: ['debug'],
// ME STATE
ME_STATE_MAX_DIFFERENCE_METERS: 1,