game: add: padding to collision

This commit is contained in:
2024-02-20 09:07:01 +01:00
committed by AdrienLSH
parent 4a97df6f38
commit 828e136bcc
6 changed files with 43 additions and 19 deletions

View File

@ -107,6 +107,10 @@ class Game
ctx.clearRect(0, 0, this.config.size_x, this.config.size_y);
this.draw_sides(ctx);
this.ball.render(ctx);
ctx.strokeStyle = "#000000";
ctx.lineWidth = this.config.stroke_thickness;
ctx.stroke();
}
_send(data)