Skip to content

Commit

Permalink
Merge branch 'main' of github.com:Chocobois/built-to-scale
Browse files Browse the repository at this point in the history
  • Loading branch information
Golen87 committed Aug 17, 2024
2 parents 29fa404 + 8e1ff94 commit eb5744d
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions src/assets/assets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ const images: Image[] = [
// Characters
image('characters/player', 'player'),
image('characters/worker', 'worker'),
image('characters/smallCWalk1', 'small_customer_walk1'),
image('characters/medCWalk1', 'medium_customer_walk1'),
image('characters/largeCWalk1', 'large_customer_walk1'),

// Items
image('items/coin', 'coin'),
Expand Down
Binary file added src/assets/images/characters/largeCWalk1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/characters/medCWalk1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/characters/smallCWalk1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 @@ -48,7 +48,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 eb5744d

Please sign in to comment.