fixe all offset
This commit is contained in:
parent
1ccb2c7edb
commit
2991e96a54
4 changed files with 6 additions and 6 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -31,7 +31,7 @@ class RiichiDisplay {
|
|||
private readonly Y: number = 150;
|
||||
private readonly OS: number = 75;
|
||||
private readonly SIZE: number = 0.75;
|
||||
private readonly TILE_WIDTH: number = 80 * this.SIZE;
|
||||
private readonly TILE_WIDTH: number = 78 * this.SIZE;
|
||||
private readonly MAX_TILES: number = 14;
|
||||
|
||||
// Cache for mouse hit detection
|
||||
|
|
@ -78,7 +78,7 @@ class RiichiDisplay {
|
|||
this.tileRects = [];
|
||||
for (let i = 0; i < this.MAX_TILES; i++) {
|
||||
this.tileRects.push({
|
||||
x: this.X + i * this.TILE_WIDTH,
|
||||
x: this.X + i * this.TILE_WIDTH + (i === this.MAX_TILES - 1 ? 10 : 0),
|
||||
y: 800,
|
||||
width: 75,
|
||||
height: 100 * this.SIZE
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ class RiichiDisplay {
|
|||
private readonly INTERACTIVE_X: number = 100;
|
||||
private readonly INTERACTIVE_Y: number = 800;
|
||||
private readonly SIZE: number = 0.75;
|
||||
private readonly TILE_WIDTH: number = 80 * this.SIZE;
|
||||
private readonly TILE_WIDTH: number = 78 * this.SIZE;
|
||||
private readonly MAX_TILES: number = 14;
|
||||
|
||||
// Zones de détection pour l'interaction souris
|
||||
|
|
@ -85,7 +85,7 @@ class RiichiDisplay {
|
|||
this.tileRects = [];
|
||||
for (let i = 0; i < this.MAX_TILES; i++) {
|
||||
this.tileRects.push({
|
||||
x: this.INTERACTIVE_X + i * this.TILE_WIDTH,
|
||||
x: this.INTERACTIVE_X + i * this.TILE_WIDTH + (i === this.MAX_TILES - 1 ? 10 : 0),
|
||||
y: this.INTERACTIVE_Y,
|
||||
width: 75,
|
||||
height: 100 * this.SIZE
|
||||
|
|
|
|||
Loading…
Reference in a new issue