Fix: reduce score not reset in typing practice
This commit is contained in:
@@ -5,7 +5,6 @@ function Animal(type, index, x, y) {
|
||||
this.posX = x;
|
||||
this.posY = y;
|
||||
|
||||
// this.sprite = game.add.sprite(this.posX, this.posY); //, "snail_run1"); // this.spriteFrameNames.run1);
|
||||
this.sprite = game.add.sprite(this.posX, this.posY, "animals");
|
||||
this.sprite.anchor.set(0.5);
|
||||
this.sprite.animations.add("stand", [index * 2]);
|
||||
@@ -20,10 +19,6 @@ Animal.prototype.setScale = function(value) {
|
||||
this.sprite.scale.set(value);
|
||||
}
|
||||
|
||||
// Animal.prototype.setIconSprite = function(species) {
|
||||
// this.setSpecies(species);
|
||||
// }
|
||||
|
||||
Animal.prototype.setSpecies = function(species) {
|
||||
console.log(species);
|
||||
this.species = species;
|
||||
@@ -51,10 +46,6 @@ Animal.prototype.tweenAnimation = function(animationType) {
|
||||
}
|
||||
}
|
||||
|
||||
// Animal.prototype.setupAnimation = function() {
|
||||
// this.stopAnimation();
|
||||
// }
|
||||
|
||||
Animal.prototype.startAnimation = function(species) {
|
||||
this.sprite.animations.play("run", this.species.fps, true);
|
||||
}
|
||||
@@ -86,8 +77,6 @@ Animal.typingCount = function(speciesData, gameType) {
|
||||
|
||||
Animal.loadResources = function() {
|
||||
game.load.spritesheet('animals', '../../../resources/image/character/animal/animals.png', 50, 50);
|
||||
|
||||
// game.load.image('snail_shadow', '../../../resources/image/character/animal/snail/shadow.png');
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user