FuncIt/Alens/root/levels/testing_grounds/windowController.gd
Alan Alexander Cerna f746117cb9
Add files via upload
2021-10-23 17:39:07 +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