Limited Space
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
ld54/scripts/gameplay/rising_level.gd

13 lines
283 B

extends Area2D
class_name RisingLevel
@export var RISING_SPEED = 30
func _physics_process(delta):
$shape.position.y -= RISING_SPEED * delta
self.position = self.position
body_entered.connect(_body_entered)
func _body_entered(body):
if body.is_in_group("player"):
body.die()