loading progress added
This commit is contained in:
@@ -47,7 +47,7 @@ class MazeQuizGame {
|
||||
let ud = {...ud1, ...ud2}
|
||||
if (ud?.finish){
|
||||
if (e.started){
|
||||
engine.dashboard.updateProgress(1)
|
||||
engine.dashboard.levelProgress.update(1)
|
||||
engine.hero.animationsMap._idle = engine.hero.animationsMap.idle
|
||||
if ( engine.hero.animationsMap?.win){
|
||||
engine.hero.animationsMap.idle = engine.hero.animationsMap.win
|
||||
@@ -65,7 +65,7 @@ class MazeQuizGame {
|
||||
}
|
||||
if (ud.qid !== undefined && e.started){
|
||||
engine.dashboard.updateText(ud.question.q)
|
||||
engine.dashboard.updateProgress(ud.qid / questions.length)
|
||||
engine.dashboard.levelProgress.update(ud.qid / questions.length)
|
||||
}
|
||||
//console.log(e, ud, engine.hero?.animationsMap);
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user