first Prototype
This commit is contained in:
parent
89503407e7
commit
c887a2168c
78 changed files with 2494 additions and 2 deletions
12
scenes/areas/hurtArea/hurtArea.tscn
Normal file
12
scenes/areas/hurtArea/hurtArea.tscn
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
[gd_scene load_steps=2 format=3 uid="uid://cglnd1ekr5u6r"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://1a30h315e73b" path="res://scenes/areas/hurtArea/hurt_area.gd" id="1_c51ym"]
|
||||
|
||||
[node name="hurtArea" type="Area2D" groups=["healthArea"]]
|
||||
collision_layer = 1073741824
|
||||
collision_mask = 2147483648
|
||||
script = ExtResource("1_c51ym")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
|
||||
[connection signal="area_entered" from="." to="." method="_on_area_entered"]
|
||||
8
scenes/areas/hurtArea/hurt_area.gd
Normal file
8
scenes/areas/hurtArea/hurt_area.gd
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
extends Area2D
|
||||
|
||||
signal hurt(amount: int)
|
||||
|
||||
#
|
||||
#func _on_area_entered(area: Area2D) -> void:
|
||||
#print(area.name)
|
||||
#
|
||||
1
scenes/areas/hurtArea/hurt_area.gd.uid
Normal file
1
scenes/areas/hurtArea/hurt_area.gd.uid
Normal file
|
|
@ -0,0 +1 @@
|
|||
uid://1a30h315e73b
|
||||
Loading…
Add table
Add a link
Reference in a new issue