mirror of
https://github.com/Relintai/broken_seals_2d.git
synced 2024-11-11 20:35:10 +01:00
Enabled y sorting for terraman's world.
This commit is contained in:
parent
1b375d109d
commit
3cba2b5dae
@ -36,6 +36,8 @@ var _player : Entity
|
||||
func _enter_tree():
|
||||
if !Engine.editor_hint && generate_on_ready:
|
||||
spawn(0, 0)
|
||||
|
||||
VisualServer.canvas_item_set_sort_children_by_y(get_canvas_item(), true)
|
||||
|
||||
func spawn(x, y):
|
||||
chunks_clear()
|
||||
@ -124,4 +126,4 @@ func set_generate(val):
|
||||
func get_generate():
|
||||
return false
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user