game: add: padding to collision

This commit is contained in:
2024-02-20 09:07:01 +01:00
parent 983f457c1e
commit 59cac2b1fd
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)