Skip to content

Commit

Permalink
update assets path
Browse files Browse the repository at this point in the history
  • Loading branch information
gdsc0301 committed Sep 13, 2023
1 parent 34d8ac7 commit 1720811
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ app.get('/login', (req, res) => {
});

app.get('/room', (req, res) => {
const player_email = req.query['player_email'];
const player_email = req.query['player_email'] + '';
const room_id = req.query['room_id']+'';

const response = new Response();
Expand Down
2 changes: 1 addition & 1 deletion src/Player.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export class Player {
this.#_mesh.position = new Vector3();
this.position = this.#_mesh.position;

const ship = new Texture("/ship.png");
const ship = new Texture("ship.png");
this.#_meshMaterial = new StandardMaterial("playerMaterial", scene);
this.#_meshMaterial.diffuseTexture = ship;
this.#_meshMaterial.diffuseTexture.hasAlpha = true;
Expand Down
4 changes: 2 additions & 2 deletions src/Room.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export default class Room {
scene
);

const gridTexture = new Texture('/bg/grid.png');
const gridTexture = new Texture('bg/grid.png');
this.roomMaterial = new StandardMaterial('roomMaterial', scene);

this.roomMaterial.diffuseTexture = gridTexture;
Expand Down Expand Up @@ -77,7 +77,7 @@ export default class Room {
delete this.players[player_username];
}

player_is_here(playerUsername) {
player_is_here(playerUsername: string) {
return !(Object.keys(this.players).indexOf(playerUsername) === -1);
}

Expand Down
2 changes: 1 addition & 1 deletion src/stage/Environment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class Environment {
this.skybox.position.set(0, 0, 20);

if(!skyboxMaterial){
const texture = new Texture("/bg/pn-2.png", this.scene);
const texture = new Texture("bg/pn-2.png", this.scene);
skyboxMaterial = new StandardMaterial("skybox", this.scene);

skyboxMaterial.diffuseTexture = texture;
Expand Down

0 comments on commit 1720811

Please sign in to comment.