FuncIt/Alens/movementSystem0.0.2/root/levels/testing_grounds/windowController.gd
2021-10-24 19:31:35 +03:00

8 lines
341 B
GDScript

extends Node2D
func _ready():
var windowExpectedWidth = $StaticBody2D/terrain_sprite.texture.get_width() * $StaticBody2D/terrain_sprite.scale.x
var windowExpectedHeight = $StaticBody2D/terrain_sprite.texture.get_height() * $StaticBody2D/terrain_sprite.scale.y
OS.set_window_size(Vector2(windowExpectedWidth, windowExpectedHeight))
pass