diff --git a/frontend/static/js/api/game/Game.js b/frontend/static/js/api/game/Game.js index b236c4b..9eb2a94 100644 --- a/frontend/static/js/api/game/Game.js +++ b/frontend/static/js/api/game/Game.js @@ -47,23 +47,18 @@ class Game this.time = new Time(); this.last_pos = null this._inited = false; - this._wall_drew = false; return 0; } draw_sides(ctx) { - if (this._wall_drew !== true) - { - this.walls.forEach(wall => { - wall.draw(ctx); - }); - } + this.walls.forEach(wall => { + wall.draw(ctx); + }); this.players.forEach(player => { player.draw(ctx); }); - this._wall_drew = true; } draw(ctx) diff --git a/frontend/static/js/views/GameView.js b/frontend/static/js/views/GameView.js index 4e56c1c..cb66657 100644 --- a/frontend/static/js/views/GameView.js +++ b/frontend/static/js/views/GameView.js @@ -48,7 +48,7 @@ export default class extends AbstractView this.my_player.update_paddle(this.keys_pressed); this.draw(); this.game.time.new_frame(); - clearInterval(loop_id); + //clearInterval(loop_id); // 1 sec fps }, 1000 / 60); }