fix button position and player start location
This commit is contained in:
parent
5e08a7b3aa
commit
c630ed7bd1
|
@ -28,7 +28,7 @@
|
||||||
"sprites": [
|
"sprites": [
|
||||||
{
|
{
|
||||||
"type": "player",
|
"type": "player",
|
||||||
"x": 4,
|
"x": 5,
|
||||||
"y": 11
|
"y": 11
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
|
@ -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"});
|
const tb = <Label>this.add.uiElement(UIElementType.LABEL, "control", {position: new Vec2(center.x, center.y + 200), text: "ESC - Pause"});
|
||||||
tb.textColor = Color.WHITE;
|
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.size.set(200, 50);
|
||||||
back.borderWidth = 2;
|
back.borderWidth = 2;
|
||||||
back.borderColor = Color.WHITE;
|
back.borderColor = Color.WHITE;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user