feat: turrents and explosions
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
[ext_resource type="Script" uid="uid://dc5mvle8lc40j" path="res://Game/Projectile/Projectile.cs" id="1_g2gsk"]
|
||||
[ext_resource type="Script" uid="uid://qjonl8stia46" path="res://addons/AetherBind/ServiceSource.cs" id="2_g4q5f"]
|
||||
[ext_resource type="PackedScene" uid="uid://dfvr0g5souli2" path="res://Game/Projectile/Explosion/explosion_gpu_particles_2d.tscn" id="2_r0joc"]
|
||||
[ext_resource type="Texture2D" uid="uid://blwkfvcupjt0v" path="res://Game/Projectile/towerDefense_tile252.png" id="3_r0joc"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_u8d0v"]
|
||||
@@ -10,6 +11,7 @@ size = Vector2(22, 39)
|
||||
[node name="Projectile" type="Node2D" unique_id=1686616504]
|
||||
script = ExtResource("1_g2gsk")
|
||||
_speed = 600.0
|
||||
_explosionPackedScene = ExtResource("2_r0joc")
|
||||
|
||||
[node name="Scope" type="Node" parent="." unique_id=513224818 node_paths=PackedStringArray("InjectedNodes")]
|
||||
script = ExtResource("2_g4q5f")
|
||||
@@ -24,3 +26,8 @@ collision_mask = 2
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D" unique_id=1209287052]
|
||||
position = Vector2(0, 0.5)
|
||||
shape = SubResource("RectangleShape2D_u8d0v")
|
||||
|
||||
[node name="VisibleOnScreenNotifier2D" type="VisibleOnScreenNotifier2D" parent="." unique_id=2022746131]
|
||||
|
||||
[connection signal="area_entered" from="Area2D" to="." method="OnArea2DEntered"]
|
||||
[connection signal="screen_exited" from="VisibleOnScreenNotifier2D" to="." method="OnScreenExited"]
|
||||
|
||||
Reference in New Issue
Block a user