Fix: reset record score to 0 when game starts
This commit is contained in:
@@ -2,6 +2,7 @@ var Game = {
|
|||||||
|
|
||||||
create: function() {
|
create: function() {
|
||||||
this.dbConnectManager = new DBConnectManager();
|
this.dbConnectManager = new DBConnectManager();
|
||||||
|
sessionStorageManager.setRecord(0);
|
||||||
|
|
||||||
this.game.stage.backgroundColor = "#000000"; // '#4d4d4d';
|
this.game.stage.backgroundColor = "#000000"; // '#4d4d4d';
|
||||||
|
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ var Game = {
|
|||||||
|
|
||||||
create: function() {
|
create: function() {
|
||||||
this.dbConnectManager = new DBConnectManager();
|
this.dbConnectManager = new DBConnectManager();
|
||||||
|
sessionStorageManager.setRecord(0);
|
||||||
|
|
||||||
game.physics.enable(this, Phaser.Physics.ARCADE);
|
game.physics.enable(this, Phaser.Physics.ARCADE);
|
||||||
|
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ var Game = {
|
|||||||
|
|
||||||
create: function() {
|
create: function() {
|
||||||
this.dbConnectManager = new DBConnectManager();
|
this.dbConnectManager = new DBConnectManager();
|
||||||
|
sessionStorageManager.setRecord(0);
|
||||||
|
|
||||||
this.game.stage.backgroundColor = "#000000"; // '#4d4d4d';
|
this.game.stage.backgroundColor = "#000000"; // '#4d4d4d';
|
||||||
|
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ var Game = {
|
|||||||
|
|
||||||
create: function() {
|
create: function() {
|
||||||
this.dbConnectManager = new DBConnectManager();
|
this.dbConnectManager = new DBConnectManager();
|
||||||
|
sessionStorageManager.setRecord(0);
|
||||||
|
|
||||||
this.game.stage.backgroundColor = "#000000"; // '#4d4d4d';
|
this.game.stage.backgroundColor = "#000000"; // '#4d4d4d';
|
||||||
|
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ var TypingPractice = {
|
|||||||
|
|
||||||
create: function() {
|
create: function() {
|
||||||
this.dbConnectManager = new DBConnectManager();
|
this.dbConnectManager = new DBConnectManager();
|
||||||
|
sessionStorageManager.setRecord(0);
|
||||||
|
|
||||||
var self = this;
|
var self = this;
|
||||||
|
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ var TypingTest = {
|
|||||||
|
|
||||||
create: function() {
|
create: function() {
|
||||||
this.dbConnectManager = new DBConnectManager();
|
this.dbConnectManager = new DBConnectManager();
|
||||||
|
sessionStorageManager.setRecord(0);
|
||||||
|
|
||||||
var self = this;
|
var self = this;
|
||||||
|
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ var WhacAMole = {
|
|||||||
|
|
||||||
create: function() {
|
create: function() {
|
||||||
this.dbConnectManager = new DBConnectManager();
|
this.dbConnectManager = new DBConnectManager();
|
||||||
|
sessionStorageManager.setRecord(0);
|
||||||
|
|
||||||
var self = this;
|
var self = this;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user