update porcelain map and button position in the level menu
This commit is contained in:
parent
76ac59ac9c
commit
1d56c21a96
|
@ -217,7 +217,7 @@
|
|||
"height": 25,
|
||||
"weight": 2,
|
||||
"bottomLayer": [4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 12, 2, 7, 13, 12, 1, 8, 12, 13, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 3, 11, 8, 2684354561, 1, 3, 2, 3, 2, 11, 8, 13, 7, 0, 0, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 0, 0, 1, 3, 2684354561, 2, 13, 7, 2684354561, 7, 3, 2684354561, 3, 12, 1, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 0, 6, 12, 6, 3, 8, 6, 8, 6, 13, 6, 2, 7, 8, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 8, 13, 8, 7, 6, 3, 13, 7, 11, 3, 8, 3, 6, 8, 7, 12, 0, 0, 0, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 13, 1, 2, 6, 13, 3, 6, 3, 13, 1, 12, 8, 7, 2, 8, 1, 12, 7, 3, 1, 3, 8],
|
||||
"objectLayer": [
|
||||
{
|
||||
"x": 18,
|
||||
|
|
|
@ -27,7 +27,7 @@ export default class Levels extends Scene {
|
|||
this.primary = this.addUILayer("primary");
|
||||
|
||||
|
||||
const tutorial = this.add.uiElement(UIElementType.BUTTON, "primary", {position: new Vec2(center.x, center.y - 50), text: "tutorial "});
|
||||
const tutorial = this.add.uiElement(UIElementType.BUTTON, "primary", {position: new Vec2(center.x, center.y - 100), text: "tutorial "});
|
||||
tutorial.size.set(200, 50);
|
||||
tutorial.borderWidth = 2;
|
||||
tutorial.borderColor = Color.WHITE;
|
||||
|
@ -41,14 +41,14 @@ export default class Levels extends Scene {
|
|||
porcelain.backgroundColor = Color.TRANSPARENT;
|
||||
porcelain.onClickEventId = "porcelain";
|
||||
|
||||
const greatwall = this.add.uiElement(UIElementType.BUTTON, "primary", {position: new Vec2(center.x, center.y + 50), text: "greatwall"});
|
||||
const greatwall = this.add.uiElement(UIElementType.BUTTON, "primary", {position: new Vec2(center.x, center.y + 100), text: "greatwall"});
|
||||
greatwall.size.set(200, 50);
|
||||
greatwall.borderWidth = 2;
|
||||
greatwall.borderColor = Color.WHITE;
|
||||
greatwall.backgroundColor = Color.TRANSPARENT;
|
||||
greatwall.onClickEventId = "greatwall";
|
||||
|
||||
const back = this.add.uiElement(UIElementType.BUTTON, "primary", {position: new Vec2(center.x, center.y + 100), text: "Back"});
|
||||
const back = this.add.uiElement(UIElementType.BUTTON, "primary", {position: new Vec2(center.x, center.y + 200), text: "Back"});
|
||||
back.size.set(200, 50);
|
||||
back.borderWidth = 2;
|
||||
back.borderColor = Color.WHITE;
|
||||
|
|
Loading…
Reference in New Issue
Block a user