working camera support

This commit is contained in:
Kbz-8
2024-02-14 18:48:35 +01:00
committed by AdrienLSH
parent 3729beec1e
commit f1f6cc939a
3 changed files with 7 additions and 21 deletions

View File

@ -52,7 +52,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
{