working on 3D camera

This commit is contained in:
Kbz-8
2024-02-21 20:06:01 +01:00
committed by AdrienLSH
parent 3b4b3b8c90
commit 35af766c2b
4 changed files with 111 additions and 13 deletions

View File

@ -121,9 +121,12 @@ class Game
this.draw_sides(ctx);
this.ball.render(ctx);
ctx.strokeStyle = "#000000";
ctx.lineWidth = this.config.stroke_thickness;
ctx.stroke();
if(ctx instanceof CanvasRenderingContext2D)
{
ctx.strokeStyle = "#000000";
ctx.lineWidth = this.config.stroke_thickness;
ctx.stroke();
}
}
_send(data)