mirror of
https://github.com/Relintai/broken_seals_2d.git
synced 2025-04-13 14:20:45 +02: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():
|
func _enter_tree():
|
||||||
if !Engine.editor_hint && generate_on_ready:
|
if !Engine.editor_hint && generate_on_ready:
|
||||||
spawn(0, 0)
|
spawn(0, 0)
|
||||||
|
|
||||||
|
VisualServer.canvas_item_set_sort_children_by_y(get_canvas_item(), true)
|
||||||
|
|
||||||
func spawn(x, y):
|
func spawn(x, y):
|
||||||
chunks_clear()
|
chunks_clear()
|
||||||
@ -124,4 +126,4 @@ func set_generate(val):
|
|||||||
func get_generate():
|
func get_generate():
|
||||||
return false
|
return false
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user