Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
erics118 committed May 16, 2024
1 parent ccc1f36 commit e670016
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
4 changes: 2 additions & 2 deletions client/src/backend.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// biome-ignore lint: dumb
export const BACKEND_URL = process.env.BACKEND_URL ?? "ws://192.168.68.111:2567"
export const BACKEND_URL =
process.env.BACKEND_URL ?? "ws://192.168.68.111:2567";
// window.location.href.indexOf("localhost") === -1
// ? // biome-ignore lint: dumb
// process.env.BACKEND_URL!
Expand Down
1 change: 0 additions & 1 deletion client/src/scenes/Scene.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ export class Scene extends Phaser.Scene {
await this.connect();

this.room.state.players.onAdd((player, sessionId) => {

const entity = this.physics.add.image(player.x, player.y, "playerCircle");
this.playerEntities[sessionId] = entity;

Expand Down
11 changes: 5 additions & 6 deletions client/src/scenes/SceneSelector.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Phaser from "phaser";
import ship from "../../public/ship.png"

export class SceneSelector extends Phaser.Scene {
constructor() {
super({ key: "selector", active: true });
Expand All @@ -12,9 +12,9 @@ export class SceneSelector extends Phaser.Scene {
const graphics = this.make.graphics({ x: 0, y: 0 });

graphics.fillStyle(0x0000ff, 1.0);
graphics.fillCircle(25, 25, 25);
graphics.fillCircle(25, 25, 25);

graphics.generateTexture('playerCircle', 50, 50);
graphics.generateTexture("playerCircle", 50, 50);
}

create() {
Expand All @@ -27,16 +27,15 @@ export class SceneSelector extends Phaser.Scene {
const textStyle: Phaser.Types.GameObjects.Text.TextStyle = {
color: "#ff0000",
fontSize: "32px",
// fontSize: "24px",
fontFamily: "Arial",
};

this.add
.text(130, 220, `Start Game`, textStyle)
.text(130, 220, "Start Game", textStyle)
.setInteractive()
.setPadding(6)
.on("pointerdown", () => {
this.runScene(`diep`);
this.runScene("diep");
});
}

Expand Down

0 comments on commit e670016

Please sign in to comment.