111 lines
3.3 KiB
Plaintext
111 lines
3.3 KiB
Plaintext
[gd_scene load_steps=15 format=3 uid="uid://cx7gr555b1gov"]
|
|
|
|
[ext_resource type="Texture2D" uid="uid://be7hl01iuo5af" path="res://Assets/Sprites/Characters/Player/kitsune-Sheet.png" id="1_0bpay"]
|
|
[ext_resource type="Script" uid="uid://cxrhl65cjw4yr" path="res://Scripts/Turrets/Turret.cs" id="2_jjtgc"]
|
|
[ext_resource type="Script" uid="uid://cy00plvsi6vkn" path="res://Scripts/Projectiles/ProjectilePool.cs" id="3_d0rgn"]
|
|
[ext_resource type="PackedScene" uid="uid://cr6shokga0dy6" path="res://Prefabs/Projectiles/Fireball.tscn" id="4_jjtgc"]
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_3dryh"]
|
|
atlas = ExtResource("1_0bpay")
|
|
region = Rect2(0, 0, 16, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_wowpa"]
|
|
atlas = ExtResource("1_0bpay")
|
|
region = Rect2(16, 0, 16, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_i6g32"]
|
|
atlas = ExtResource("1_0bpay")
|
|
region = Rect2(32, 0, 16, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_1l0tm"]
|
|
atlas = ExtResource("1_0bpay")
|
|
region = Rect2(48, 0, 16, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_v158k"]
|
|
atlas = ExtResource("1_0bpay")
|
|
region = Rect2(64, 0, 16, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_h4fw4"]
|
|
atlas = ExtResource("1_0bpay")
|
|
region = Rect2(80, 0, 16, 32)
|
|
|
|
[sub_resource type="SpriteFrames" id="SpriteFrames_ebmjs"]
|
|
animations = [{
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_3dryh")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_wowpa")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_i6g32")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_1l0tm")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_v158k")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_h4fw4")
|
|
}],
|
|
"loop": true,
|
|
"name": &"idle",
|
|
"speed": 8.0
|
|
}]
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_5wxv7"]
|
|
radius = 50.0
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_y5hcb"]
|
|
radius = 7.0
|
|
|
|
[sub_resource type="QuadMesh" id="QuadMesh_5wxv7"]
|
|
size = Vector2(100, 100)
|
|
|
|
[node name="Turret" type="Node2D"]
|
|
y_sort_enabled = true
|
|
texture_filter = 1
|
|
|
|
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
|
self_modulate = Color(1.8247963, 1.8247963, 1.8247963, 1)
|
|
sprite_frames = SubResource("SpriteFrames_ebmjs")
|
|
animation = &"idle"
|
|
autoplay = "idle"
|
|
frame_progress = 0.8244228
|
|
offset = Vector2(0, -16)
|
|
|
|
[node name="Scripts" type="Node" parent="."]
|
|
|
|
[node name="Turret" type="Node" parent="Scripts" node_paths=PackedStringArray("_Attackrange", "_parent", "_projectilePool")]
|
|
script = ExtResource("2_jjtgc")
|
|
_Attackrange = NodePath("../../ShootArea")
|
|
_fireRate = 1.0
|
|
_parent = NodePath("../..")
|
|
_projectilePool = NodePath("../ProjectilePool")
|
|
|
|
[node name="ProjectilePool" type="Node" parent="Scripts"]
|
|
script = ExtResource("3_d0rgn")
|
|
_scene = ExtResource("4_jjtgc")
|
|
_poolSize = 10
|
|
|
|
[node name="ShootArea" type="Area2D" parent="."]
|
|
collision_layer = 0
|
|
collision_mask = 4
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="ShootArea"]
|
|
rotation = 1.5707964
|
|
shape = SubResource("CircleShape2D_5wxv7")
|
|
|
|
[node name="PlacementCollider" type="Area2D" parent="."]
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="PlacementCollider"]
|
|
position = Vector2(0, -5)
|
|
rotation = 1.5707964
|
|
shape = SubResource("CircleShape2D_y5hcb")
|
|
|
|
[node name="MeshInstance2D" type="MeshInstance2D" parent="."]
|
|
visible = false
|
|
mesh = SubResource("QuadMesh_5wxv7")
|