game: add: padding to collision
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user