Skip to content

Commit

Permalink
change some assets
Browse files Browse the repository at this point in the history
  • Loading branch information
codergautam committed Sep 27, 2022
1 parent 95fa304 commit 37b4f44
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
Binary file removed assets/images/circlegrass.png
Binary file not shown.
5 changes: 0 additions & 5 deletions src/components/Island.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ export default class Island extends Phaser.GameObjects.Container {
id: number;
capturingCircle: Phaser.GameObjects.Ellipse;
flag: Phaser.GameObjects.Image;
background: Phaser.GameObjects.Image;
dir: number;
lastUpdate: number;
capturingBy: string;
Expand All @@ -28,9 +27,6 @@ export default class Island extends Phaser.GameObjects.Container {

(this.scene as GameScene).minimap.ignore(this.flag);

this.background = new Phaser.GameObjects.Image(scene, 0, 0, "grass").setOrigin(0.5);
this.background.setScale(data.size/1900);


// if(this.capturedBy == "red") console.log(this.id + " is captured by red");

Expand All @@ -43,7 +39,6 @@ export default class Island extends Phaser.GameObjects.Container {
this.add(this.island);
this.add(this.capturingCircle);
this.add(this.flag);
if(data.size >= 1000) this.add(this.background);
this.scene.add.existing(this);
(this.scene as GameScene).uiCam.ignore(this);

Expand Down

0 comments on commit 37b4f44

Please sign in to comment.