Add: SpriteIconTimer
This commit is contained in:
@@ -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");
|
||||
}
|
||||
@@ -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;
|
||||
Reference in New Issue
Block a user