feat: create and destroy dragons
This commit is contained in:
parent
9e153b63ac
commit
c75800aaa8
7 changed files with 57 additions and 32 deletions
|
@ -32,5 +32,7 @@ func _instantiate_dragon(relative_position: Vector2i) -> void:
|
|||
add_child(dragon)
|
||||
if dragon is Window:
|
||||
var window_position: Vector2i = DisplayServer.window_get_position()
|
||||
var window_size: Vector2i = DisplayServer.window_get_size()
|
||||
dragon.position = window_position + relative_position
|
||||
dragon.main_window_rect = Rect2i(window_position, window_size)
|
||||
dragon.show()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue