use strict; fixes #83

This commit is contained in:
logsol 2014-12-22 01:43:21 +01:00
parent b886728bf5
commit 2b186be8af
78 changed files with 163 additions and 5 deletions

View file

@ -4,6 +4,8 @@ define([
function (Box2D) {
"use strict";
function Detector () {
this.listener = new Box2D.Dynamics.b2ContactListener();
this.listener.BeginContact = this.beginContact.bind(this);

View file

@ -8,6 +8,8 @@ define([
function (PhysicsEngine, TiledLevel, Player, Nc, Doll) {
"use strict";
function GameController (options) {
this.options = options;

View file

@ -9,6 +9,8 @@ define([
function (Parent, Box2D, Settings, CollisionDetector, Item, Nc) {
"use strict";
function Doll (physicsEngine, uid, player) {
this.characterName = "Chuck";

View file

@ -4,6 +4,8 @@ define([
],
function (Box2D, Exception) {
"use strict";
function GameObject(physicsEngine, uid) {
this.uid = uid;

View file

@ -8,6 +8,8 @@ define([
],
function (Parent, Box2D, Options, Settings, Exception, Nc) {
"use strict";
function Item(physicsEngine, uid, options) {

View file

@ -6,6 +6,8 @@ define([
],
function (Parent, Box2D, Settings, Nc) {
"use strict";
function RagDoll(physicsEngine, uid, options) {

View file

@ -5,6 +5,8 @@ define([
],
function (Parent, Box2D, Settings) {
"use strict";
function RagDoll(physicsEngine, uid, options) {
Parent.call(this, physicsEngine, uid, options);

View file

@ -7,6 +7,8 @@ define([
function (Parent, RubeLoader, Box2D, Settings ) {
"use strict";
// Fixme - make this loadable
var __ragdollJson;

View file

@ -5,6 +5,8 @@ define([
],
function (Parent, Box2D, Settings) {
"use strict";
function Skateboard(physicsEngine, uid, options) {

View file

@ -4,6 +4,8 @@ define([
],
function (Parent, Box2D) {
"use strict";
function SpectatorDoll(physicsEngine, uid, player) {
Parent.call(this, physicsEngine, uid);

View file

@ -7,6 +7,8 @@ define([
],
function (Parent, Box2D, Settings, Exception, Nc) {
"use strict";
function Tile(physicsEngine, uid, options) {
this.options = options;

View file

@ -7,6 +7,8 @@ define([
function (Settings, Box2D, CollisionDetector, Nc) {
"use strict";
function Engine () {
this.world = new Box2D.Dynamics.b2World(
new Box2D.Common.Math.b2Vec2(0, Settings.BOX2D_GRAVITY),

View file

@ -7,9 +7,10 @@ define([
"Game/" + GLOBALS.context + "/GameObjects/Items/RagDoll"
],
function (Doll, Settings, Nc, Exception, SpectatorDoll, RagDoll) {
"use strict";
function Player (id, physicsEngine, user) {
this.stats = {
health: 100,