fix button position and player start location

This commit is contained in:
Kelly Peng 2022-04-25 22:55:02 -04:00
parent 5e08a7b3aa
commit c630ed7bd1
2 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,7 @@
"sprites": [
{
"type": "player",
"x": 4,
"x": 5,
"y": 11
}
]

View File

@ -132,7 +132,7 @@ export default class MainMenu extends Scene {
const tb = <Label>this.add.uiElement(UIElementType.LABEL, "control", {position: new Vec2(center.x, center.y + 200), text: "ESC - Pause"});
tb.textColor = Color.WHITE;
const back = this.add.uiElement(UIElementType.BUTTON, "control", {position: new Vec2(center.x, center.y + 250), text: "Back"});
const back = this.add.uiElement(UIElementType.BUTTON, "control", {position: new Vec2(center.x, center.y + 300), text: "Back"});
back.size.set(200, 50);
back.borderWidth = 2;
back.borderColor = Color.WHITE;