Skip to content

Commit

Permalink
Use tabs in test file.
Browse files Browse the repository at this point in the history
  • Loading branch information
PhaserEditor2D committed Nov 16, 2021
1 parent e7ff002 commit 3ddfa58
Showing 1 changed file with 25 additions and 25 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,35 +5,35 @@

class AnotherPrefabPrefab extends Phaser.GameObjects.Container {

constructor(scene: Phaser.Scene, x?: number, y?: number) {
super(scene, x ?? 0, y ?? -16.506139428920388);

// coloredBlue
const coloredBlue = scene.add.text(0, 16.506139428920388, "", {});
coloredBlue.setOrigin(0.5, 0.5);
coloredBlue.text = "This is another prefab";
coloredBlue.setStyle({ "backgroundColor": "#00ccffff", "color": "#a93005ff", "fontSize": "40px" });
this.add(coloredBlue);

// coloredYellow
const coloredYellow = scene.add.text(-6, 71, "", {});
coloredYellow.setOrigin(0.5, 0.5);
coloredYellow.text = "This is another prefab";
coloredYellow.setStyle({ "backgroundColor": "#f4ff00ff", "color": "#a93005ff", "fontSize": "40px" });
this.add(coloredYellow);

this.coloredBlue = coloredBlue;
this.coloredYellow = coloredYellow;

/* START-USER-CTR-CODE */
constructor(scene: Phaser.Scene, x?: number, y?: number) {
super(scene, x ?? 0, y ?? -16.506139428920388);

// coloredBlue
const coloredBlue = scene.add.text(0, 16.506139428920388, "", {});
coloredBlue.setOrigin(0.5, 0.5);
coloredBlue.text = "This is another prefab";
coloredBlue.setStyle({ "backgroundColor": "#00ccffff", "color": "#a93005ff", "fontSize": "40px" });
this.add(coloredBlue);

// coloredYellow
const coloredYellow = scene.add.text(-6, 71, "", {});
coloredYellow.setOrigin(0.5, 0.5);
coloredYellow.text = "This is another prefab";
coloredYellow.setStyle({ "backgroundColor": "#f4ff00ff", "color": "#a93005ff", "fontSize": "40px" });
this.add(coloredYellow);

this.coloredBlue = coloredBlue;
this.coloredYellow = coloredYellow;

/* START-USER-CTR-CODE */
// Write your code here.
/* END-USER-CTR-CODE */
}
}

public coloredBlue: Phaser.GameObjects.Text;
public coloredYellow: Phaser.GameObjects.Text;
public coloredBlue: Phaser.GameObjects.Text;
public coloredYellow: Phaser.GameObjects.Text;

/* START-USER-CODE */
/* START-USER-CODE */

// Write your code here.

Expand Down

0 comments on commit 3ddfa58

Please sign in to comment.