mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 10:37:34 +00:00
api getMaps for create channel
This commit is contained in:
parent
a837d2099c
commit
6bc9b7e32b
8 changed files with 509 additions and 1658 deletions
|
|
@ -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));
|
||||
});
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue