Update: CC - Snake FS - Entity Loaded (21g30t1e75.js) 77 bytes modified
parent
a78e4c9fc4
commit
3c89b21089
|
@ -225,7 +225,8 @@ this.state = {
|
|||
message : null,
|
||||
gameOver : false,
|
||||
muted : false,
|
||||
paused : false
|
||||
paused : false,
|
||||
score : 0
|
||||
};
|
||||
|
||||
GameLib.CustomCode.prototype.advanceSpeedTimer = function(delta) {
|
||||
|
@ -1295,7 +1296,9 @@ GameLib.CustomCode.prototype.extend = function(gameObject, position, orientation
|
|||
this.animation.translationSpeed = GameLib.CustomCode.MAX_ANIMATION_SPEED;
|
||||
}
|
||||
|
||||
console.log('speed = ' + this.speed);
|
||||
this.state.score += (1 - this.speed) * 21;
|
||||
|
||||
//console.log('speed = ' + this.speed);
|
||||
|
||||
}.bind(this);
|
||||
|
||||
|
@ -1816,7 +1819,8 @@ GameLib.Event.Subscribe(
|
|||
message : null,
|
||||
gameOver : false,
|
||||
muted : this.state.muted,
|
||||
paused : false
|
||||
paused : false,
|
||||
score : 0
|
||||
};
|
||||
|
||||
GameLib.Event.Emit(
|
||||
|
|
Loading…
Reference in New Issue