Add: SpriteIconTimer

This commit is contained in:
2018-12-15 10:59:04 +09:00
parent 990a203b98
commit 3dd42ffe02
11 changed files with 126 additions and 29 deletions
+15
View File
@@ -113,4 +113,19 @@ SessionStorageManager.prototype.resetPlayingAppData = function() {
this.removeItem("playingAppKoreanName");
this.removeItem("record");
this.removeItem("appHighestRecord");
}
SessionStorageManager.prototype.resetAllAppData = function() {
this.removeItem("maestroID");
this.removeItem("maestroName");
this.removeItem("maestroAccountType");
this.removeItem("playerName");
this.removeItem("playerID");
this.removeItem("playerAccountType");
this.removeItem("playingAppID");
this.removeItem("playingAppName");
this.removeItem("playingAppKoreanName");
this.removeItem("record");
this.removeItem("appHighestRecord");
this.removeItem("isNewAppHighestRecord");
}
+17
View File
@@ -0,0 +1,17 @@
function SpriteIconTimer(width, height, frame) {
var sprite = game.add.sprite(0, 0, "icon_timer_spritesheet");
sprite.width = width;
sprite.height = height;
sprite.frame = frame;
return sprite;
}
SpriteIconTimer.loadResources = function() {
game.load.spritesheet('icon_timer_spritesheet', '../../../resources/image/icon/timer_spritesheet.png', 100, 100);
}
SpriteIconTimer.FRAME_RESET = 0;
SpriteIconTimer.FRAME_PLAY = 1;
SpriteIconTimer.FRAME_PAUSE = 2;