Skip to content

Commit

Permalink
debug tests
Browse files Browse the repository at this point in the history
  • Loading branch information
evemartin committed Apr 25, 2024
1 parent cae1170 commit 5aea941
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions game/static/game/js/game.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
Expand Down Expand Up @@ -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),
Expand Down

0 comments on commit 5aea941

Please sign in to comment.