Skip to content

Commit be7ad0c

Browse files
committed
Add built JS
1 parent f4c029d commit be7ad0c

File tree

2 files changed

+13
-12
lines changed

2 files changed

+13
-12
lines changed

dist/duckhunt.js

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -19703,7 +19703,7 @@ var Character = function (_extras$AnimatedSprit) {
1970319703

1970419704
var gameTextures = _pixi.loader.resources[spritesheet].textures;
1970519705
for (var textureKey in gameTextures) {
19706-
if (!gameTextures.hasOwnProperty(textureKey) || textureKey.indexOf(spriteId) === -1) {
19706+
if (!Object.prototype.hasOwnProperty.call(gameTextures, textureKey) || textureKey.indexOf(spriteId) === -1) {
1970719707
continue;
1970819708
}
1970919709

@@ -19718,7 +19718,7 @@ var Character = function (_extras$AnimatedSprit) {
1971819718
continue;
1971919719
}
1972019720

19721-
if (stateObj.hasOwnProperty('textures')) {
19721+
if (Object.prototype.hasOwnProperty.call(stateObj, 'textures')) {
1972219722
stateObj.textures.push(gameTextures[textureKey]);
1972319723
} else {
1972419724
Object.defineProperty(stateObj, 'textures', {
@@ -19810,7 +19810,7 @@ var Character = function (_extras$AnimatedSprit) {
1981019810
}
1981119811
this.textures = stateObj.textures;
1981219812
this.animationSpeed = stateObj.animationSpeed;
19813-
this.loop = stateObj.hasOwnProperty('loop') ? stateObj.loop : true;
19813+
this.loop = Object.prototype.hasOwnProperty.call(stateObj, 'loop') ? stateObj.loop : true;
1981419814
this.play();
1981519815
}
1981619816

@@ -37241,6 +37241,7 @@ var Game = function () {
3724137241
});
3724237242
this.levelIndex = 0;
3724337243
this.maxScore = 0;
37244+
this.timePaused = 0;
3724437245
this.muted = false;
3724537246
this.paused = false;
3724637247
this.activeSounds = [];
@@ -37324,7 +37325,7 @@ var Game = function () {
3732437325
y: 1
3732537326
}
3732637327
});
37327-
this.stage.hud.levelCreatorLink = "level creator (c)";
37328+
this.stage.hud.levelCreatorLink = 'level creator (c)';
3732837329
}
3732937330
}, {
3733037331
key: 'bindEvents',
@@ -37355,7 +37356,7 @@ var Game = function () {
3735537356
}
3735637357
});
3735737358

37358-
document.addEventListener('fullscreenchange', function (event) {
37359+
document.addEventListener('fullscreenchange', function () {
3735937360
if (document.fullscreenElement) {
3736037361
_this.stage.hud.fullscreenLink = 'unfullscreen (f)';
3736137362
} else {
@@ -37663,7 +37664,7 @@ var Game = function () {
3766337664

3766437665
if (this.stage && this.stage.hud) {
3766537666

37666-
if (!this.stage.hud.hasOwnProperty('ducksMissed')) {
37667+
if (!Object.prototype.hasOwnProperty.call(this.stage.hud, 'ducksMissed')) {
3766737668
this.stage.hud.createTextureBasedCounter('ducksMissed', {
3766837669
texture: 'hud/score-live/0.png',
3766937670
spritesheet: this.spritesheet,
@@ -37686,7 +37687,7 @@ var Game = function () {
3768637687

3768737688
if (this.stage && this.stage.hud) {
3768837689

37689-
if (!this.stage.hud.hasOwnProperty('ducksShot')) {
37690+
if (!Object.prototype.hasOwnProperty.call(this.stage.hud, 'ducksShot')) {
3769037691
this.stage.hud.createTextureBasedCounter('ducksShot', {
3769137692
texture: 'hud/score-dead/0.png',
3769237693
spritesheet: this.spritesheet,
@@ -37723,7 +37724,7 @@ var Game = function () {
3772337724

3772437725
if (this.stage && this.stage.hud) {
3772537726

37726-
if (!this.stage.hud.hasOwnProperty('bullets')) {
37727+
if (!Object.prototype.hasOwnProperty.call(this.stage.hud, 'bullets')) {
3772737728
this.stage.hud.createTextureBasedCounter('bullets', {
3772837729
texture: 'hud/bullet/0.png',
3772937730
spritesheet: this.spritesheet,
@@ -37761,7 +37762,7 @@ var Game = function () {
3776137762

3776237763
if (this.stage && this.stage.hud) {
3776337764

37764-
if (!this.stage.hud.hasOwnProperty('score')) {
37765+
if (!Object.prototype.hasOwnProperty.call(this.stage.hud, 'score')) {
3776537766
this.stage.hud.createTextBox('score', {
3776637767
style: {
3776737768
fontFamily: 'Arial',
@@ -37805,7 +37806,7 @@ var Game = function () {
3780537806

3780637807
if (this.stage && this.stage.hud) {
3780737808

37808-
if (!this.stage.hud.hasOwnProperty('waveStatus')) {
37809+
if (!Object.prototype.hasOwnProperty.call(this.stage.hud, 'waveStatus')) {
3780937810
this.stage.hud.createTextBox('waveStatus', {
3781037811
style: {
3781137812
fontFamily: 'Arial',
@@ -37850,7 +37851,7 @@ var Game = function () {
3785037851

3785137852
if (this.stage && this.stage.hud) {
3785237853

37853-
if (!this.stage.hud.hasOwnProperty('gameStatus')) {
37854+
if (!Object.prototype.hasOwnProperty.call(this.stage.hud, 'gameStatus')) {
3785437855
this.stage.hud.createTextBox('gameStatus', {
3785537856
style: {
3785637857
fontFamily: 'Arial',

dist/duckhunt.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)