level 4 a bowser

This commit is contained in:
Jonas Braus
2024-08-03 22:13:40 +02:00
parent 30b0a527b4
commit a9c2f587da
24 changed files with 8249 additions and 5 deletions
+20
View File
@@ -0,0 +1,20 @@
extends Area2D
@export var rot_speed = 3
@onready var timer = $Timer
var innocent = false
func _physics_process(delta):
rotate(rot_speed * delta)
func _on_body_entered(body):
if not innocent:
body.shrink()
innocent = true
timer.start()
func _on_timer_timeout():
innocent = false