first Prototype
This commit is contained in:
parent
89503407e7
commit
c887a2168c
78 changed files with 2494 additions and 2 deletions
27
scenes/obstacle/obstacle.tscn
Normal file
27
scenes/obstacle/obstacle.tscn
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
[gd_scene load_steps=4 format=3 uid="uid://cgqo1nxq6xprm"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://eqo7k2ronf8k" path="res://scenes/areas/damageArea/damageArea.tscn" id="1_1ys07"]
|
||||
[ext_resource type="Script" uid="uid://iu7hvfpevs65" path="res://scenes/obstacle/obstacle.gd" id="1_osovj"]
|
||||
[ext_resource type="PackedScene" uid="uid://cglnd1ekr5u6r" path="res://scenes/areas/hurtArea/hurtArea.tscn" id="2_osovj"]
|
||||
|
||||
[node name="Obstacle" type="CharacterBody2D" groups=["obstacle"]]
|
||||
collision_layer = 2
|
||||
collision_mask = 46
|
||||
script = ExtResource("1_osovj")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
|
||||
[node name="DamageArea" parent="." instance=ExtResource("1_1ys07")]
|
||||
|
||||
[node name="hurtArea" parent="." instance=ExtResource("2_osovj")]
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||||
|
||||
[node name="lifeTimeTimer" type="Timer" parent="."]
|
||||
one_shot = true
|
||||
|
||||
[connection signal="hurt" from="hurtArea" to="." method="_on_hurt_area_hurt"]
|
||||
[connection signal="timeout" from="lifeTimeTimer" to="." method="_on_life_time_timer_timeout"]
|
||||
|
||||
[editable path="DamageArea"]
|
||||
[editable path="hurtArea"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue