68 lines
2.8 KiB
Plaintext
68 lines
2.8 KiB
Plaintext
[gd_scene load_steps=10 format=3 uid="uid://bhc7y4xugu4q7"]
|
|
|
|
[ext_resource type="Texture2D" uid="uid://djifxc5x0dyrw" path="res://sprites/ppc_tileset.png" id="1_w543f"]
|
|
[ext_resource type="Script" uid="uid://2i7p7v135u7c" path="res://scripts/components/DamageComponent.cs" id="2_6th6w"]
|
|
[ext_resource type="Script" uid="uid://cs6u3sh68f43j" path="res://scripts/components/OutOfScreenComponent.cs" id="3_e0mqp"]
|
|
[ext_resource type="Script" uid="uid://oyf25mpc5etr" path="res://scripts/components/LifetimeComponent.cs" id="4_r4wv6"]
|
|
[ext_resource type="Script" uid="uid://cbexrnnj47f87" path="res://scripts/components/LaunchComponent.cs" id="5_7bijt"]
|
|
[ext_resource type="Script" uid="uid://c7p06t0eax8am" path="res://scripts/components/StraightMotionComponent.cs" id="6_lycw2"]
|
|
[ext_resource type="Script" uid="uid://cfw8nbrarex0i" path="res://scripts/components/BulletComponent.cs" id="7_2aweg"]
|
|
[ext_resource type="PackedScene" uid="uid://c1iorglk708g0" path="res://objects/fxs/terrain_hit_fx.tscn" id="8_6th6w"]
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_txsw8"]
|
|
radius = 4.0
|
|
|
|
[node name="Bullet" type="Area2D"]
|
|
collision_layer = 8
|
|
collision_mask = 21
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
shape = SubResource("CircleShape2D_txsw8")
|
|
|
|
[node name="Sprite2D" type="Sprite2D" parent="."]
|
|
scale = Vector2(0.5, 0.5)
|
|
texture = ExtResource("1_w543f")
|
|
hframes = 12
|
|
vframes = 12
|
|
frame = 79
|
|
|
|
[node name="VisibleOnScreenNotifier2D" type="VisibleOnScreenNotifier2D" parent="."]
|
|
position = Vector2(2.38419e-07, 2.38419e-07)
|
|
scale = Vector2(0.4, 0.4)
|
|
|
|
[node name="DamageComponent" type="Node" parent="." node_paths=PackedStringArray("Area", "DamageTimer")]
|
|
script = ExtResource("2_6th6w")
|
|
Area = NodePath("..")
|
|
DamageTimer = NodePath("../Timer")
|
|
|
|
[node name="Timer" type="Timer" parent="."]
|
|
wait_time = 5.0
|
|
autostart = true
|
|
|
|
[node name="OutOfScreenComponent" type="Node" parent="." node_paths=PackedStringArray("VisibilityNotifier")]
|
|
script = ExtResource("3_e0mqp")
|
|
VisibilityNotifier = NodePath("../VisibleOnScreenNotifier2D")
|
|
|
|
[node name="LifetimeComponent" type="Node" parent="."]
|
|
script = ExtResource("4_r4wv6")
|
|
LifeTime = 10.0
|
|
|
|
[node name="LaunchComponent" type="Node2D" parent="."]
|
|
script = ExtResource("5_7bijt")
|
|
Speed = 120.0
|
|
metadata/_custom_type_script = "uid://873un8agkyja"
|
|
|
|
[node name="StraightMotionComponent" type="Node" parent="." node_paths=PackedStringArray("LaunchComponent")]
|
|
script = ExtResource("6_lycw2")
|
|
LaunchComponent = NodePath("../LaunchComponent")
|
|
|
|
[node name="BulletComponent" type="Node" parent="." node_paths=PackedStringArray("Area", "TerrainHitFx", "BulletSprite")]
|
|
script = ExtResource("7_2aweg")
|
|
Area = NodePath("..")
|
|
TerrainHitFx = NodePath("../TerrainHitFX")
|
|
BulletSprite = NodePath("../Sprite2D")
|
|
metadata/_custom_type_script = "uid://cdnwrn8v05qhi"
|
|
|
|
[node name="TerrainHitFX" parent="." instance=ExtResource("8_6th6w")]
|
|
z_index = 3
|