game: fix: 3d
This commit is contained in:
@ -58,8 +58,8 @@ class Segment extends AExchangeable
|
||||
{
|
||||
const size = this.game.config.BALL_SIZE * 2;
|
||||
const sizex = this.len() / 2;
|
||||
const posx = (this.start.x - this.game.config.CENTER_X);
|
||||
const posy = (this.start.y - this.game.config.CENTER_Y);
|
||||
const posx = (this.start.x - this.game.config.MAP_CENTER_X);
|
||||
const posy = (this.start.y - this.game.config.MAP_CENTER_Y);
|
||||
renderCube(ctx, posx, 0, posy, -this.angle(), sizex, size, size);
|
||||
}
|
||||
else
|
||||
|
Reference in New Issue
Block a user