working camera support

This commit is contained in:
Kbz-8
2024-02-14 18:48:35 +01:00
parent 7f26b839c3
commit faed2a027d
3 changed files with 7 additions and 21 deletions

View File

@ -48,7 +48,7 @@ class Ball
}
else if(ctx instanceof WebGLRenderingContext)
{
renderCube(ctx, this.position_x, 0, this.position_y, 0, this.game.config.ball_size, this.game.config.ball_size, this.game.config.ball_size);
renderCube(ctx, this.position_x / 1000, 0, this.position_y / 1000, 0, this.game.config.ball_size, this.game.config.ball_size, this.game.config.ball_size);
}
else
{