game: fix: 3d
This commit is contained in:
@ -32,8 +32,8 @@ export class Wall extends Segment
|
||||
{
|
||||
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