LD54_Box_Survival/boxedSpace.gd

14 lines
353 B
GDScript3
Raw Normal View History

2023-09-30 04:07:34 +00:00
extends Node2D
@onready var arenaBody = $StaticBody2D
# Called when the node enters the scene tree for the first time.
func _ready():
pass # Replace with function body.
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
if arenaBody.scale.x > 0.1:
arenaBody.scale -= arenaBody.scale * 0.01 * delta