game: paddle can move
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user