First builds and stuff done yipewaho
This commit is contained in:
@@ -0,0 +1,85 @@
|
||||
[gd_scene load_steps=12 format=3 uid="uid://8230dpmp7mic"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://be7hl01iuo5af" path="res://Assets/Sprites/Characters/Player/kitsune-Sheet.png" id="1_8pa4j"]
|
||||
[ext_resource type="Script" uid="uid://c4764ubjc3tan" path="res://Scripts/Turrets/TurretPlaceholder.cs" id="1_m8yif"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_m8yif"]
|
||||
atlas = ExtResource("1_8pa4j")
|
||||
region = Rect2(0, 0, 16, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_mxl7p"]
|
||||
atlas = ExtResource("1_8pa4j")
|
||||
region = Rect2(16, 0, 16, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_5c7uc"]
|
||||
atlas = ExtResource("1_8pa4j")
|
||||
region = Rect2(32, 0, 16, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_27ihx"]
|
||||
atlas = ExtResource("1_8pa4j")
|
||||
region = Rect2(48, 0, 16, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_rkws8"]
|
||||
atlas = ExtResource("1_8pa4j")
|
||||
region = Rect2(64, 0, 16, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_ppr0o"]
|
||||
atlas = ExtResource("1_8pa4j")
|
||||
region = Rect2(80, 0, 16, 32)
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_ebmjs"]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_m8yif")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_mxl7p")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_5c7uc")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_27ihx")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_rkws8")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_ppr0o")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"idle",
|
||||
"speed": 8.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" node_paths=PackedStringArray("_placementChecker")]
|
||||
y_sort_enabled = true
|
||||
texture_filter = 1
|
||||
script = ExtResource("1_m8yif")
|
||||
_placementChecker = NodePath("PlacementCollider")
|
||||
|
||||
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
||||
self_modulate = Color(1, 1, 1, 0.49803922)
|
||||
sprite_frames = SubResource("SpriteFrames_ebmjs")
|
||||
animation = &"idle"
|
||||
autoplay = "idle"
|
||||
frame_progress = 0.66817015
|
||||
offset = Vector2(0, -16)
|
||||
|
||||
[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")
|
||||
@@ -0,0 +1,85 @@
|
||||
[gd_scene load_steps=12 format=3 uid="uid://dmyv5hki78wf7"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://c4764ubjc3tan" path="res://Scripts/Turrets/TurretPlaceholder.cs" id="1_eybvl"]
|
||||
[ext_resource type="Texture2D" uid="uid://c6dl0tlkdtis1" path="res://Assets/Sprites/Characters/Player/oniSheet.png" id="2_eybvl"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_o7til"]
|
||||
atlas = ExtResource("2_eybvl")
|
||||
region = Rect2(0, 0, 16, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_d2vfx"]
|
||||
atlas = ExtResource("2_eybvl")
|
||||
region = Rect2(16, 0, 16, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_oap50"]
|
||||
atlas = ExtResource("2_eybvl")
|
||||
region = Rect2(32, 0, 16, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_8du7j"]
|
||||
atlas = ExtResource("2_eybvl")
|
||||
region = Rect2(48, 0, 16, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_q65kb"]
|
||||
atlas = ExtResource("2_eybvl")
|
||||
region = Rect2(64, 0, 16, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_tw2se"]
|
||||
atlas = ExtResource("2_eybvl")
|
||||
region = Rect2(80, 0, 16, 32)
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_ebmjs"]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_o7til")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_d2vfx")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_oap50")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_8du7j")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_q65kb")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_tw2se")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"idle",
|
||||
"speed": 8.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" node_paths=PackedStringArray("_placementChecker")]
|
||||
y_sort_enabled = true
|
||||
texture_filter = 1
|
||||
script = ExtResource("1_eybvl")
|
||||
_placementChecker = NodePath("PlacementCollider")
|
||||
|
||||
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
||||
self_modulate = Color(1, 1, 1, 0.49803922)
|
||||
sprite_frames = SubResource("SpriteFrames_ebmjs")
|
||||
animation = &"idle"
|
||||
autoplay = "idle"
|
||||
frame_progress = 0.66817015
|
||||
offset = Vector2(0, -16)
|
||||
|
||||
[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")
|
||||
@@ -0,0 +1,85 @@
|
||||
[gd_scene load_steps=12 format=3 uid="uid://dqyr3m6o0e3i"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://c4764ubjc3tan" path="res://Scripts/Turrets/TurretPlaceholder.cs" id="1_1ptjx"]
|
||||
[ext_resource type="Texture2D" uid="uid://codbtra5i6ara" path="res://Assets/Sprites/Characters/Player/tengu-Sheet.png" id="2_1ptjx"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_a6rco"]
|
||||
atlas = ExtResource("2_1ptjx")
|
||||
region = Rect2(0, 0, 16, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_42avh"]
|
||||
atlas = ExtResource("2_1ptjx")
|
||||
region = Rect2(16, 0, 16, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_e075m"]
|
||||
atlas = ExtResource("2_1ptjx")
|
||||
region = Rect2(32, 0, 16, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_tmypy"]
|
||||
atlas = ExtResource("2_1ptjx")
|
||||
region = Rect2(48, 0, 16, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_lgt5p"]
|
||||
atlas = ExtResource("2_1ptjx")
|
||||
region = Rect2(64, 0, 16, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_66d3b"]
|
||||
atlas = ExtResource("2_1ptjx")
|
||||
region = Rect2(80, 0, 16, 32)
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_ebmjs"]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_a6rco")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_42avh")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_e075m")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_tmypy")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_lgt5p")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_66d3b")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"idle",
|
||||
"speed": 8.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" node_paths=PackedStringArray("_placementChecker")]
|
||||
y_sort_enabled = true
|
||||
texture_filter = 1
|
||||
script = ExtResource("1_1ptjx")
|
||||
_placementChecker = NodePath("PlacementCollider")
|
||||
|
||||
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
||||
self_modulate = Color(1, 1, 1, 0.49803922)
|
||||
sprite_frames = SubResource("SpriteFrames_ebmjs")
|
||||
animation = &"idle"
|
||||
autoplay = "idle"
|
||||
frame_progress = 0.8244228
|
||||
offset = Vector2(0, -16)
|
||||
|
||||
[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")
|
||||
@@ -1,9 +1,11 @@
|
||||
[gd_scene load_steps=15 format=3 uid="uid://cx7gr555b1gov"]
|
||||
[gd_scene load_steps=18 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"]
|
||||
[ext_resource type="PackedScene" uid="uid://wucwxtp1w12q" path="res://Prefabs/Projectiles/Blueflame.tscn" id="4_jjtgc"]
|
||||
[ext_resource type="Script" uid="uid://bpqof3jshxnug" path="res://Scripts/Turrets/DragMover.cs" id="5_d0rgn"]
|
||||
[ext_resource type="AudioStream" uid="uid://dt18fd3icyuxu" path="res://Assets/Sounds/Sfx/kitsune.wav" id="6_cnydl"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_3dryh"]
|
||||
atlas = ExtResource("1_0bpay")
|
||||
@@ -61,6 +63,9 @@ radius = 50.0
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_y5hcb"]
|
||||
radius = 7.0
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_jjtgc"]
|
||||
size = Vector2(32, 16)
|
||||
|
||||
[sub_resource type="QuadMesh" id="QuadMesh_5wxv7"]
|
||||
size = Vector2(100, 100)
|
||||
|
||||
@@ -78,33 +83,56 @@ offset = Vector2(0, -16)
|
||||
|
||||
[node name="Scripts" type="Node" parent="."]
|
||||
|
||||
[node name="Turret" type="Node" parent="Scripts" node_paths=PackedStringArray("_Attackrange", "_parent", "_projectilePool")]
|
||||
[node name="Turret" type="Node" parent="Scripts" node_paths=PackedStringArray("_Attackrange", "_parent", "_projectilePool", "_audio")]
|
||||
script = ExtResource("2_jjtgc")
|
||||
_Attackrange = NodePath("../../ShootArea")
|
||||
_fireRate = 1.0
|
||||
_parent = NodePath("../..")
|
||||
_projectilePool = NodePath("../ProjectilePool")
|
||||
_audio = NodePath("../../AudioStreamPlayer2D")
|
||||
|
||||
[node name="ProjectilePool" type="Node" parent="Scripts"]
|
||||
script = ExtResource("3_d0rgn")
|
||||
_scene = ExtResource("4_jjtgc")
|
||||
_poolSize = 10
|
||||
|
||||
[node name="DragMover" type="Node" parent="Scripts" node_paths=PackedStringArray("Parent", "DragArea", "CheckArea", "ShootArea")]
|
||||
script = ExtResource("5_d0rgn")
|
||||
Parent = NodePath("../..")
|
||||
DragArea = NodePath("../../DragCollider")
|
||||
CheckArea = NodePath("../../PlacementCollider")
|
||||
ShootArea = NodePath("../../ShootArea")
|
||||
|
||||
[node name="ShootArea" type="Area2D" parent="."]
|
||||
collision_layer = 0
|
||||
collision_mask = 4
|
||||
input_pickable = false
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="ShootArea"]
|
||||
rotation = 1.5707964
|
||||
shape = SubResource("CircleShape2D_5wxv7")
|
||||
|
||||
[node name="PlacementCollider" type="Area2D" parent="."]
|
||||
input_pickable = false
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="PlacementCollider"]
|
||||
position = Vector2(0, -5)
|
||||
rotation = 1.5707964
|
||||
shape = SubResource("CircleShape2D_y5hcb")
|
||||
|
||||
[node name="DragCollider" type="Area2D" parent="."]
|
||||
collision_layer = 2147483648
|
||||
collision_mask = 2147483648
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="DragCollider"]
|
||||
position = Vector2(0, -16)
|
||||
rotation = 1.5707964
|
||||
shape = SubResource("RectangleShape2D_jjtgc")
|
||||
|
||||
[node name="MeshInstance2D" type="MeshInstance2D" parent="."]
|
||||
visible = false
|
||||
mesh = SubResource("QuadMesh_5wxv7")
|
||||
|
||||
[node name="AudioStreamPlayer2D" type="AudioStreamPlayer2D" parent="."]
|
||||
stream = ExtResource("6_cnydl")
|
||||
volume_db = -20.0
|
||||
|
||||
@@ -0,0 +1,136 @@
|
||||
[gd_scene load_steps=18 format=3 uid="uid://8fsvnmto0ckj"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://c6dl0tlkdtis1" path="res://Assets/Sprites/Characters/Player/oniSheet.png" id="1_rg6xk"]
|
||||
[ext_resource type="Script" uid="uid://cxrhl65cjw4yr" path="res://Scripts/Turrets/Turret.cs" id="2_hi1ge"]
|
||||
[ext_resource type="Script" uid="uid://cy00plvsi6vkn" path="res://Scripts/Projectiles/ProjectilePool.cs" id="3_if52b"]
|
||||
[ext_resource type="PackedScene" uid="uid://deud430j2w18n" path="res://Prefabs/Projectiles/GreenFist.tscn" id="4_rg6xk"]
|
||||
[ext_resource type="Script" uid="uid://bpqof3jshxnug" path="res://Scripts/Turrets/DragMover.cs" id="5_hi1ge"]
|
||||
[ext_resource type="AudioStream" uid="uid://ce5vqm3tts58o" path="res://Assets/Sounds/Sfx/oni.wav" id="6_if52b"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_hi1ge"]
|
||||
atlas = ExtResource("1_rg6xk")
|
||||
region = Rect2(0, 0, 16, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_if52b"]
|
||||
atlas = ExtResource("1_rg6xk")
|
||||
region = Rect2(16, 0, 16, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_aqbic"]
|
||||
atlas = ExtResource("1_rg6xk")
|
||||
region = Rect2(32, 0, 16, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_nxpwl"]
|
||||
atlas = ExtResource("1_rg6xk")
|
||||
region = Rect2(48, 0, 16, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_tmcq1"]
|
||||
atlas = ExtResource("1_rg6xk")
|
||||
region = Rect2(64, 0, 16, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_ahiq0"]
|
||||
atlas = ExtResource("1_rg6xk")
|
||||
region = Rect2(80, 0, 16, 32)
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_ebmjs"]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_hi1ge")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_if52b")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_aqbic")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_nxpwl")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_tmcq1")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_ahiq0")
|
||||
}],
|
||||
"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)
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_rg6xk"]
|
||||
size = Vector2(32, 16)
|
||||
|
||||
[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", "_audio")]
|
||||
script = ExtResource("2_hi1ge")
|
||||
_Attackrange = NodePath("../../ShootArea")
|
||||
_fireRate = 1.0
|
||||
_parent = NodePath("../..")
|
||||
_projectilePool = NodePath("../ProjectilePool")
|
||||
_audio = NodePath("../../AudioStreamPlayer2D")
|
||||
|
||||
[node name="ProjectilePool" type="Node" parent="Scripts"]
|
||||
script = ExtResource("3_if52b")
|
||||
_scene = ExtResource("4_rg6xk")
|
||||
_poolSize = 10
|
||||
|
||||
[node name="DragMover" type="Node" parent="Scripts" node_paths=PackedStringArray("Parent", "DragArea", "CheckArea", "ShootArea")]
|
||||
script = ExtResource("5_hi1ge")
|
||||
Parent = NodePath("../..")
|
||||
DragArea = NodePath("../../DragCollider")
|
||||
CheckArea = NodePath("../../PlacementCollider")
|
||||
ShootArea = NodePath("../../ShootArea")
|
||||
|
||||
[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")
|
||||
|
||||
[node name="DragCollider" type="Area2D" parent="."]
|
||||
collision_layer = 2147483648
|
||||
collision_mask = 2147483648
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="DragCollider"]
|
||||
position = Vector2(0, -16)
|
||||
rotation = 1.5707964
|
||||
shape = SubResource("RectangleShape2D_rg6xk")
|
||||
|
||||
[node name="AudioStreamPlayer2D" type="AudioStreamPlayer2D" parent="."]
|
||||
stream = ExtResource("6_if52b")
|
||||
volume_db = -20.0
|
||||
@@ -0,0 +1,136 @@
|
||||
[gd_scene load_steps=18 format=3 uid="uid://cthdcnxhbyad2"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://codbtra5i6ara" path="res://Assets/Sprites/Characters/Player/tengu-Sheet.png" id="1_3e4v5"]
|
||||
[ext_resource type="Script" uid="uid://cxrhl65cjw4yr" path="res://Scripts/Turrets/Turret.cs" id="2_ahbvo"]
|
||||
[ext_resource type="Script" uid="uid://cy00plvsi6vkn" path="res://Scripts/Projectiles/ProjectilePool.cs" id="3_466qr"]
|
||||
[ext_resource type="PackedScene" uid="uid://cr6shokga0dy6" path="res://Prefabs/Projectiles/Fireball.tscn" id="4_mtyrr"]
|
||||
[ext_resource type="Script" uid="uid://bpqof3jshxnug" path="res://Scripts/Turrets/DragMover.cs" id="5_ahbvo"]
|
||||
[ext_resource type="AudioStream" uid="uid://wvrhsssfi7w3" path="res://Assets/Sounds/Sfx/tengu.wav" id="6_466qr"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_ahbvo"]
|
||||
atlas = ExtResource("1_3e4v5")
|
||||
region = Rect2(0, 0, 16, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_466qr"]
|
||||
atlas = ExtResource("1_3e4v5")
|
||||
region = Rect2(16, 0, 16, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_mtyrr"]
|
||||
atlas = ExtResource("1_3e4v5")
|
||||
region = Rect2(32, 0, 16, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_wfhqm"]
|
||||
atlas = ExtResource("1_3e4v5")
|
||||
region = Rect2(48, 0, 16, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_1ekx4"]
|
||||
atlas = ExtResource("1_3e4v5")
|
||||
region = Rect2(64, 0, 16, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_u8dw0"]
|
||||
atlas = ExtResource("1_3e4v5")
|
||||
region = Rect2(80, 0, 16, 32)
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_ebmjs"]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_ahbvo")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_466qr")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_mtyrr")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_wfhqm")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_1ekx4")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_u8dw0")
|
||||
}],
|
||||
"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)
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_3e4v5"]
|
||||
size = Vector2(32, 16)
|
||||
|
||||
[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", "_audio")]
|
||||
script = ExtResource("2_ahbvo")
|
||||
_Attackrange = NodePath("../../ShootArea")
|
||||
_fireRate = 1.0
|
||||
_parent = NodePath("../..")
|
||||
_projectilePool = NodePath("../ProjectilePool")
|
||||
_audio = NodePath("../../AudioStreamPlayer2D")
|
||||
|
||||
[node name="ProjectilePool" type="Node" parent="Scripts"]
|
||||
script = ExtResource("3_466qr")
|
||||
_scene = ExtResource("4_mtyrr")
|
||||
_poolSize = 10
|
||||
|
||||
[node name="DragMover" type="Node" parent="Scripts" node_paths=PackedStringArray("Parent", "DragArea", "CheckArea", "ShootArea")]
|
||||
script = ExtResource("5_ahbvo")
|
||||
Parent = NodePath("../..")
|
||||
DragArea = NodePath("../../DragCollider")
|
||||
CheckArea = NodePath("../../PlacementCollider")
|
||||
ShootArea = NodePath("../../ShootArea")
|
||||
|
||||
[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")
|
||||
|
||||
[node name="DragCollider" type="Area2D" parent="."]
|
||||
collision_layer = 2147483648
|
||||
collision_mask = 2147483648
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="DragCollider"]
|
||||
position = Vector2(0, -16)
|
||||
rotation = 1.5707964
|
||||
shape = SubResource("RectangleShape2D_3e4v5")
|
||||
|
||||
[node name="AudioStreamPlayer2D" type="AudioStreamPlayer2D" parent="."]
|
||||
stream = ExtResource("6_466qr")
|
||||
volume_db = -20.0
|
||||
Reference in New Issue
Block a user