Skip to content

Commit 31d90d7

Browse files
committed
Use ZIndex in code
1 parent 65c3e6e commit 31d90d7

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

demo/Blackholio/client-godot/GameManager.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ private void HandleSubscriptionApplied(SubscriptionEventContext ctx)
112112
// Get the world size from the config table and set up the arena
113113
var worldSize = Conn.Db.Config.Id.Find(0).WorldSize;
114114
SetupArena(worldSize);
115-
115+
116116
ctx.Reducers.EnterGame(DefaultPlayerName);
117117
}
118118

@@ -130,7 +130,8 @@ private void SetupArena(float worldSize)
130130
Name = "Background",
131131
Color = BackgroundColor,
132132
Position = Vector2.Zero,
133-
Polygon = polygon
133+
Polygon = polygon,
134+
ZIndex = -1000
134135
};
135136
background.AddChild(new Polygon2D
136137
{
@@ -141,7 +142,7 @@ private void SetupArena(float worldSize)
141142
InvertBorder = BorderThickness,
142143
Polygon = polygon
143144
});
144-
AddChild(background, @internal: InternalMode.Front);
145+
AddChild(background);
145146

146147
AddChild(new CameraController(worldSize));
147148
}
-19.2 KB
Loading

0 commit comments

Comments
 (0)