From 5aea941b3540a470e889e9997091577b68c7d9f2 Mon Sep 17 00:00:00 2001 From: Eve Martin Date: Thu, 25 Apr 2024 13:40:51 +0000 Subject: [PATCH] debug tests --- game/static/game/js/game.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/game/static/game/js/game.js b/game/static/game/js/game.js index c6be54efd..1af6a6360 100644 --- a/game/static/game/js/game.js +++ b/game/static/game/js/game.js @@ -10,6 +10,10 @@ ocargo.Game = function () { } ocargo.Game.prototype.setup = function () { + this.drawing = new ocargo.Drawing(ocargo.model.startingPosition()) + this.drawing.preloadRoadTiles() + ocargo.animation = new ocargo.Animation(ocargo.model, DECOR, this.drawing) + let _this = this; loadLanguage("/static/game/js/blockly/msg/js/", navigator.language.toLowerCase(), function () { @@ -49,9 +53,6 @@ ocargo.Game.prototype.setup = function () { MAX_FUEL ) - _this.drawing = new ocargo.Drawing(ocargo.model.startingPosition()) - _this.drawing.preloadRoadTiles() - ocargo.animation = new ocargo.Animation(ocargo.model, DECOR, _this.drawing) _this.saving = new ocargo.Saving() _this.sharing = new ocargo.Sharing( () => parseInt(LEVEL_ID),