Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
LuxxArt committed Aug 17, 2024
2 parents 52f64d7 + a67e60d commit 8e1ff94
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Binary file added src/assets/images/ui/angyv.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions src/components/Board.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export class Board extends Phaser.GameObjects.Container {
private grid: Phaser.GameObjects.Grid;
private things: any[];

constructor(scene: GameScene, x: number, y: number) {
constructor(scene: GameScene, x: number, y: number, width: number, height: number) {
super(scene, x, y);
scene.add.existing(this);
this.scene = scene;
Expand All @@ -15,8 +15,8 @@ export class Board extends Phaser.GameObjects.Container {
this.grid = this.scene.add.grid(
0,
0,
8 * this.size,
6 * this.size,
width * this.size,
height * this.size,
this.size,
this.size,
0xffffff,
Expand Down
2 changes: 1 addition & 1 deletion src/scenes/GameScene.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export class GameScene extends BaseScene {
this.background.setOrigin(0);
this.fitToScreen(this.background);

this.board = new Board(this, 930, 550);
this.board = new Board(this, 930, 550, 8, 6);

this.stations = [];
this.addStation(0, 0, StationId.WaitingSeatTier1);
Expand Down

0 comments on commit 8e1ff94

Please sign in to comment.