fixes #112 finished recorder

This commit is contained in:
Jeena 2015-03-15 21:06:44 +01:00
parent dfa71bc8e5
commit c88afc8b4c
11 changed files with 275 additions and 1765 deletions

View file

@ -3,6 +3,8 @@ define([
function () {
"use strict";
var Settings = {
STAGE_WIDTH: 600,
STAGE_HEIGHT: 400,
@ -19,13 +21,14 @@ function () {
BOX2D_TIME_STEP: 1 / 60,
// PATHS
GRAPHICS_PATH: 'static/img/',
GRAPHICS_SUBPATH_ITEMS: 'Items/',
GRAPHICS_SUBPATH_CHARACTERS: 'Characters/',
GRAPHICS_SUBPATH_TILES: 'Tiles/',
MAPS_PATH: 'static/maps/tiled/',
AUDIO_PATH: 'static/sounds/',
CHANNEL_RECORDING_PATH: 'recordings/',
GRAPHICS_PATH: "static/img/",
GRAPHICS_SUBPATH_ITEMS: "Items/",
GRAPHICS_SUBPATH_CHARACTERS: "Characters/",
GRAPHICS_SUBPATH_TILES: "Tiles/",
MAPS_PATH: "static/maps/tiled/",
AUDIO_PATH: "static/sounds/",
CHANNEL_RECORDING_PATH: "recordings/",
CHANNEL_PLAY_RECORDING: false, //"Quickstart-2015-03-15T19:00:28.545Z-debug_residence_stones.log",
RATIO: 21, //35
// original tile size is 25 but we want it to resize to 20
@ -33,7 +36,7 @@ function () {
TILE_SIZE: 20,
CAMERA_IS_ORTHOGRAPHIC: true,
CAMERA_GLIDE: 12, // % of the way per frame
VIEW_CONTROLLER: 0 ? 'Three' : 'Pixi',
VIEW_CONTROLLER: 0 ? "Three" : "Pixi",
ARROW_GLIDE: 30, // % of the way per frame
SHOW_LAYER_INFO: false,
@ -69,15 +72,15 @@ function () {
ITEM_LINEAR_DAMPING: 0.02,
// BROWSER
CANVAS_DOM_ID: 'canvasContainer',
IS_BROWSER_ENVIRONMENT: typeof window !== 'undefined',
CANVAS_DOM_ID: "canvasContainer",
IS_BROWSER_ENVIRONMENT: typeof window !== "undefined",
USE_WEBGL: true,
// NETWORKING
NETWORK_UPDATE_INTERVAL: 70, // in milliseconds
NETWORK_LOG_INCOMING: false,
NETWORK_LOG_OUTGOING: false,
NETWORK_LOG_FILTER: ['ping', 'pong', 'worldUpdate', 'lookAt'],
NETWORK_LOG_FILTER: ["ping", "pong", "worldUpdate", "lookAt"],
// CHANNEL
CHANNEL_MAX_USERS: 20,
@ -85,13 +88,13 @@ function () {
CHANNEL_END_ROUND_TIME: 4, //10,
CHANNEL_DEFAULT_MAX_USERS: 40,
CHANNEL_DEFAULT_SCORE_LIMIT: 10,
CHANNEL_DEFAULT_LEVELS: ['debug'],
CHANNEL_RECORD_SESSION: false,
CHANNEL_DEFAULT_LEVELS: ["debug"],
CHANNEL_RECORD_SESSION: true,
// ME STATE
ME_STATE_MAX_DIFFERENCE_METERS: 1,
PUNKBUSTER_DIFFERENCE_METERS: 1
}
};
Settings.TILE_RATIO = Settings.ORIGINAL_TILE_SIZE / Settings.TILE_SIZE;