mirror of
https://github.com/SEISYUNLie/Platform-Jump.git
synced 2026-10-27 19:31:10 +08:00
Initial commit
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
extends Area2D
|
||||
|
||||
var damage = 1
|
||||
|
||||
func _ready():
|
||||
body_entered.connect(_on_body_entered)
|
||||
|
||||
func _on_body_entered(body):
|
||||
if body.is_in_group("player"):
|
||||
body.take_damage(damage)
|
||||
Reference in New Issue
Block a user