initial commit

This commit is contained in:
Derek
2024-07-14 13:13:05 -05:00
commit 9241836cf4
309 changed files with 15043 additions and 0 deletions

19
scripts/UIScreenAdjust.gd Normal file
View File

@@ -0,0 +1,19 @@
extends TextureRect
var viewportWidth
var viewportHeight
var start_size
var changed_size
# Called when the node enters the scene tree for the first time.
func _ready():
viewportWidth = get_viewport().size.x
viewportHeight = get_viewport().size.y
start_size = Vector2(size.x, size.y)
changed_size = start_size
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
position = Vector2(viewportWidth/2 - (size.x/2), viewportHeight/2 - (size.y/2))