Skip to content

Commit f409a73

Browse files
author
Christian Wesselhoeft
committed
Fix jshint issues in src/Phaser.js
1 parent bdbf278 commit f409a73

4 files changed

Lines changed: 62 additions & 61 deletions

File tree

src/Phaser.js

Lines changed: 58 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* global Phaser:true */
12
/**
23
* @author Richard Davey <rich@photonstorm.com>
34
* @copyright 2014 Photon Storm Ltd.
@@ -13,68 +14,68 @@ var Phaser = Phaser || {
1314
DEV_VERSION: '2.0.2',
1415
GAMES: [],
1516

16-
AUTO: 0,
17-
CANVAS: 1,
18-
WEBGL: 2,
19-
HEADLESS: 3,
17+
AUTO: 0,
18+
CANVAS: 1,
19+
WEBGL: 2,
20+
HEADLESS: 3,
2021

21-
NONE: 0,
22-
LEFT: 1,
23-
RIGHT: 2,
24-
UP: 3,
25-
DOWN: 4,
22+
NONE: 0,
23+
LEFT: 1,
24+
RIGHT: 2,
25+
UP: 3,
26+
DOWN: 4,
2627

27-
SPRITE: 0,
28-
BUTTON: 1,
29-
IMAGE: 2,
30-
GRAPHICS: 3,
31-
TEXT: 4,
32-
TILESPRITE: 5,
33-
BITMAPTEXT: 6,
34-
GROUP: 7,
35-
RENDERTEXTURE: 8,
36-
TILEMAP: 9,
37-
TILEMAPLAYER: 10,
38-
EMITTER: 11,
39-
POLYGON: 12,
40-
BITMAPDATA: 13,
41-
CANVAS_FILTER: 14,
42-
WEBGL_FILTER: 15,
43-
ELLIPSE: 16,
44-
SPRITEBATCH: 17,
45-
RETROFONT: 18,
28+
SPRITE: 0,
29+
BUTTON: 1,
30+
IMAGE: 2,
31+
GRAPHICS: 3,
32+
TEXT: 4,
33+
TILESPRITE: 5,
34+
BITMAPTEXT: 6,
35+
GROUP: 7,
36+
RENDERTEXTURE: 8,
37+
TILEMAP: 9,
38+
TILEMAPLAYER: 10,
39+
EMITTER: 11,
40+
POLYGON: 12,
41+
BITMAPDATA: 13,
42+
CANVAS_FILTER: 14,
43+
WEBGL_FILTER: 15,
44+
ELLIPSE: 16,
45+
SPRITEBATCH: 17,
46+
RETROFONT: 18,
4647

47-
// The various blend modes supported by pixi / phaser
48-
blendModes: {
49-
NORMAL:0,
50-
ADD:1,
51-
MULTIPLY:2,
52-
SCREEN:3,
53-
OVERLAY:4,
54-
DARKEN:5,
55-
LIGHTEN:6,
56-
COLOR_DODGE:7,
57-
COLOR_BURN:8,
58-
HARD_LIGHT:9,
59-
SOFT_LIGHT:10,
60-
DIFFERENCE:11,
61-
EXCLUSION:12,
62-
HUE:13,
63-
SATURATION:14,
64-
COLOR:15,
65-
LUMINOSITY:16
66-
},
48+
// The various blend modes supported by pixi / phaser
49+
blendModes: {
50+
NORMAL:0,
51+
ADD:1,
52+
MULTIPLY:2,
53+
SCREEN:3,
54+
OVERLAY:4,
55+
DARKEN:5,
56+
LIGHTEN:6,
57+
COLOR_DODGE:7,
58+
COLOR_BURN:8,
59+
HARD_LIGHT:9,
60+
SOFT_LIGHT:10,
61+
DIFFERENCE:11,
62+
EXCLUSION:12,
63+
HUE:13,
64+
SATURATION:14,
65+
COLOR:15,
66+
LUMINOSITY:16
67+
},
6768

68-
// The scale modes
69-
scaleModes: {
70-
DEFAULT:0,
71-
LINEAR:0,
72-
NEAREST:1
73-
}
69+
// The scale modes
70+
scaleModes: {
71+
DEFAULT:0,
72+
LINEAR:0,
73+
NEAREST:1
74+
}
7475

7576
};
7677

77-
PIXI.InteractionManager = function (dummy) {
78-
// We don't need this in Pixi, so we've removed it to save space
79-
// however the Stage object expects a reference to it, so here is a dummy entry.
78+
PIXI.InteractionManager = function () {
79+
// We don't need this in Pixi, so we've removed it to save space
80+
// however the Stage object expects a reference to it, so here is a dummy entry.
8081
};

src/physics/Physics.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,11 +146,11 @@ Phaser.Physics.prototype = {
146146
}
147147
else if (system === Phaser.Physics.BOX2D && this.box2d === null)
148148
{
149-
// Coming soon
149+
throw new Error('The Box2D physics system has not been implemented yet.');
150150
}
151151
else if (system === Phaser.Physics.CHIPMUNK && this.chipmunk === null)
152152
{
153-
// Coming soon
153+
throw new Error('The Chipmunk physics system has not been implemented yet.');
154154
}
155155

156156
},

src/physics/ninja/AABB.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ Phaser.Physics.Ninja.AABB.prototype = {
136136
* @param {number} dy - Collision normal
137137
* @param {number} obj - Object this AABB collided with
138138
*/
139-
reportCollisionVsWorld: function (px, py, dx, dy, obj) {
139+
reportCollisionVsWorld: function (px, py, dx, dy) {
140140

141141
var p = this.pos;
142142
var o = this.oldpos;

src/physics/ninja/Circle.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ Phaser.Physics.Ninja.Circle.prototype = {
140140
* @param {number} dy - Collision normal
141141
* @param {number} obj - Object this Circle collided with
142142
*/
143-
reportCollisionVsWorld: function (px, py, dx, dy, obj) {
143+
reportCollisionVsWorld: function (px, py, dx, dy) {
144144

145145
var p = this.pos;
146146
var o = this.oldpos;

0 commit comments

Comments
 (0)