first Prototype
This commit is contained in:
parent
89503407e7
commit
c887a2168c
78 changed files with 2494 additions and 2 deletions
30
scenes/bullet/bullet.tscn
Normal file
30
scenes/bullet/bullet.tscn
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
[gd_scene load_steps=4 format=3 uid="uid://0ndix1r8v6i1"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://eqo7k2ronf8k" path="res://scenes/areas/damageArea/damageArea.tscn" id="1_5f68y"]
|
||||
[ext_resource type="Script" uid="uid://w5vknsebe1yd" path="res://scenes/bullet/bullet.gd" id="1_mkndb"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_mkndb"]
|
||||
|
||||
[node name="Bullet" type="CharacterBody2D" groups=["bullet"]]
|
||||
collision_layer = 0
|
||||
collision_mask = 0
|
||||
script = ExtResource("1_mkndb")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||||
position = Vector2(0, -9.53674e-07)
|
||||
scale = Vector2(0.125, 0.25)
|
||||
|
||||
[node name="rangeTimer" type="Timer" parent="."]
|
||||
one_shot = true
|
||||
|
||||
[node name="DamageArea" parent="." instance=ExtResource("1_5f68y")]
|
||||
|
||||
[node name="CollisionShape2D" parent="DamageArea" index="0"]
|
||||
shape = SubResource("RectangleShape2D_mkndb")
|
||||
|
||||
[connection signal="timeout" from="rangeTimer" to="." method="_on_range_timer_timeout"]
|
||||
[connection signal="area_entered" from="DamageArea" to="." method="_on_damage_area_area_entered"]
|
||||
|
||||
[editable path="DamageArea"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue