This commit is contained in:
2026-01-31 23:24:13 +02:00
parent be0c819c8b
commit 12c1360ae7
58 changed files with 1902 additions and 238 deletions
+75
View File
@@ -0,0 +1,75 @@
[gd_scene load_steps=11 format=3 uid="uid://c37hbbbx8wje"]
[ext_resource type="Script" uid="uid://bj52mq7uip7di" path="res://Scripts/Enemies/Enemy.cs" id="1_rmkli"]
[ext_resource type="Texture2D" uid="uid://dab3cq4y0d2pm" path="res://Assets/Sprites/Characters/Enemies/water-Sheet.png" id="2_rmkli"]
[ext_resource type="Script" uid="uid://cu37tswrk107q" path="res://Scripts/Enemies/EnemyMovement.cs" id="3_t8by4"]
[ext_resource type="Script" uid="uid://dvkd1keu854so" path="res://Scripts/Components/Health.cs" id="4_cyy2q"]
[sub_resource type="AtlasTexture" id="AtlasTexture_frtie"]
atlas = ExtResource("2_rmkli")
region = Rect2(0, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_t8by4"]
atlas = ExtResource("2_rmkli")
region = Rect2(32, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_cyy2q"]
atlas = ExtResource("2_rmkli")
region = Rect2(64, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_1jpca"]
atlas = ExtResource("2_rmkli")
region = Rect2(96, 0, 32, 32)
[sub_resource type="SpriteFrames" id="SpriteFrames_ewbju"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_frtie")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_t8by4")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_cyy2q")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_1jpca")
}],
"loop": true,
"name": &"default",
"speed": 5.0
}]
[sub_resource type="CircleShape2D" id="CircleShape2D_7puah"]
radius = 12.0
[node name="enemy" type="PathFollow2D" node_paths=PackedStringArray("Health")]
rotates = false
loop = false
script = ExtResource("1_rmkli")
Health = NodePath("Scripts/Health")
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
texture_filter = 1
sprite_frames = SubResource("SpriteFrames_ewbju")
offset = Vector2(0, -16)
[node name="Scripts" type="Node" parent="."]
[node name="Movement" type="Node" parent="Scripts" node_paths=PackedStringArray("_pathFollow2D")]
script = ExtResource("3_t8by4")
_pathFollow2D = NodePath("../..")
_speed = 25.0
[node name="Health" type="Node" parent="Scripts"]
script = ExtResource("4_cyy2q")
_baseMaxHp = 50.0
[node name="HitBox" type="Area2D" parent="."]
collision_layer = 4
collision_mask = 0
[node name="CollisionShape2D" type="CollisionShape2D" parent="HitBox"]
position = Vector2(-1, -9)
shape = SubResource("CircleShape2D_7puah")
@@ -1,34 +1,37 @@
[gd_scene load_steps=12 format=3 uid="uid://y54cvugsx75b"]
[gd_scene load_steps=15 format=3 uid="uid://y54cvugsx75b"]
[ext_resource type="Texture2D" uid="uid://cm8gnfvfysyyl" path="res://Assets/Sprites/Characters/Enemies/stone-Sheet.png" id="1_7puah"]
[ext_resource type="Script" uid="uid://cu37tswrk107q" path="res://Scripts/Enemies/EnemyMovement.cs" id="2_wtb2n"]
[ext_resource type="Script" uid="uid://bj52mq7uip7di" path="res://Scripts/Enemies/Enemy.cs" id="1_qqq3s"]
[ext_resource type="Texture2D" uid="uid://cm8gnfvfysyyl" path="res://Assets/Sprites/Characters/Enemies/stone-Sheet.png" id="2_ymaxx"]
[ext_resource type="Script" uid="uid://cu37tswrk107q" path="res://Scripts/Enemies/EnemyMovement.cs" id="3_pbvk1"]
[ext_resource type="Script" uid="uid://dvkd1keu854so" path="res://Scripts/Components/Health.cs" id="4_njiku"]
[ext_resource type="Script" uid="uid://c247m8m3qmlk0" path="res://Scripts/Enemies/EnemyArea.cs" id="5_ymaxx"]
[sub_resource type="AtlasTexture" id="AtlasTexture_ldgsr"]
atlas = ExtResource("1_7puah")
atlas = ExtResource("2_ymaxx")
region = Rect2(0, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_o5yvi"]
atlas = ExtResource("1_7puah")
atlas = ExtResource("2_ymaxx")
region = Rect2(32, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_rku1e"]
atlas = ExtResource("1_7puah")
atlas = ExtResource("2_ymaxx")
region = Rect2(64, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_rfjv2"]
atlas = ExtResource("1_7puah")
atlas = ExtResource("2_ymaxx")
region = Rect2(96, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_1phco"]
atlas = ExtResource("1_7puah")
atlas = ExtResource("2_ymaxx")
region = Rect2(128, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_nb51f"]
atlas = ExtResource("1_7puah")
atlas = ExtResource("2_ymaxx")
region = Rect2(160, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_nnt18"]
atlas = ExtResource("1_7puah")
atlas = ExtResource("2_ymaxx")
region = Rect2(192, 0, 32, 32)
[sub_resource type="SpriteFrames" id="SpriteFrames_ewbju"]
@@ -60,30 +63,38 @@ animations = [{
"speed": 5.0
}]
[sub_resource type="CircleShape2D" id="CircleShape2D_i6g32"]
radius = 7.0
[sub_resource type="CircleShape2D" id="CircleShape2D_7puah"]
radius = 12.0
[node name="RockBoi" type="CharacterBody2D"]
motion_mode = 1
[node name="NavigationAgent2D" type="NavigationAgent2D" parent="."]
path_desired_distance = 1.0
simplify_path = true
simplify_epsilon = 0.25
[node name="enemy" type="PathFollow2D" node_paths=PackedStringArray("Health")]
rotates = false
loop = false
script = ExtResource("1_qqq3s")
Health = NodePath("Scripts/Health")
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
self_modulate = Color(1.8247963, 1.8247963, 1.8247963, 1)
texture_filter = 1
sprite_frames = SubResource("SpriteFrames_ewbju")
offset = Vector2(0, -16)
[node name="Scripts" type="Node" parent="."]
[node name="Movement" type="Node" parent="Scripts" node_paths=PackedStringArray("_agent2D", "_body2D")]
script = ExtResource("2_wtb2n")
_agent2D = NodePath("../../NavigationAgent2D")
_body2D = NodePath("../..")
_speed = 44.59
[node name="Movement" type="Node" parent="Scripts" node_paths=PackedStringArray("_pathFollow2D")]
script = ExtResource("3_pbvk1")
_pathFollow2D = NodePath("../..")
_speed = 25.0
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2(0, -7)
shape = SubResource("CircleShape2D_i6g32")
[node name="Health" type="Node" parent="Scripts"]
script = ExtResource("4_njiku")
_baseMaxHp = 50.0
[node name="HitBox" type="Area2D" parent="." node_paths=PackedStringArray("Enemy")]
collision_layer = 4
collision_mask = 0
script = ExtResource("5_ymaxx")
Enemy = NodePath("..")
[node name="CollisionShape2D" type="CollisionShape2D" parent="HitBox"]
position = Vector2(0, -14)
shape = SubResource("CircleShape2D_7puah")
+106
View File
@@ -0,0 +1,106 @@
[gd_scene load_steps=15 format=3 uid="uid://bawoevqlooah0"]
[ext_resource type="Script" uid="uid://bj52mq7uip7di" path="res://Scripts/Enemies/Enemy.cs" id="1_0paat"]
[ext_resource type="Texture2D" uid="uid://blkxqlgahm4al" path="res://Assets/Sprites/Characters/Enemies/stump-Sheet.png" id="2_0paat"]
[ext_resource type="Script" uid="uid://cu37tswrk107q" path="res://Scripts/Enemies/EnemyMovement.cs" id="3_8v58s"]
[ext_resource type="Script" uid="uid://dvkd1keu854so" path="res://Scripts/Components/Health.cs" id="4_04dlg"]
[sub_resource type="AtlasTexture" id="AtlasTexture_pitds"]
atlas = ExtResource("2_0paat")
region = Rect2(0, 0, 64, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_8v58s"]
atlas = ExtResource("2_0paat")
region = Rect2(64, 0, 64, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_04dlg"]
atlas = ExtResource("2_0paat")
region = Rect2(128, 0, 64, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_m1mv1"]
atlas = ExtResource("2_0paat")
region = Rect2(192, 0, 64, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_6jaqh"]
atlas = ExtResource("2_0paat")
region = Rect2(256, 0, 64, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_pgfmy"]
atlas = ExtResource("2_0paat")
region = Rect2(320, 0, 64, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_mu3a6"]
atlas = ExtResource("2_0paat")
region = Rect2(384, 0, 64, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_byqr4"]
atlas = ExtResource("2_0paat")
region = Rect2(448, 0, 64, 64)
[sub_resource type="SpriteFrames" id="SpriteFrames_ewbju"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_pitds")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_8v58s")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_04dlg")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_m1mv1")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_6jaqh")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_pgfmy")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_mu3a6")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_byqr4")
}],
"loop": true,
"name": &"default",
"speed": 8.0
}]
[sub_resource type="CircleShape2D" id="CircleShape2D_7puah"]
radius = 12.0
[node name="enemy" type="PathFollow2D" node_paths=PackedStringArray("Health")]
rotates = false
loop = false
script = ExtResource("1_0paat")
Type = 1
Health = NodePath("Scripts/Health")
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
texture_filter = 1
sprite_frames = SubResource("SpriteFrames_ewbju")
frame = 1
frame_progress = 0.31093782
offset = Vector2(0, -16)
[node name="Scripts" type="Node" parent="."]
[node name="Movement" type="Node" parent="Scripts" node_paths=PackedStringArray("_pathFollow2D")]
script = ExtResource("3_8v58s")
_pathFollow2D = NodePath("../..")
_speed = 25.0
[node name="Health" type="Node" parent="Scripts"]
script = ExtResource("4_04dlg")
_baseMaxHp = 50.0
[node name="HitBox" type="Area2D" parent="."]
collision_layer = 4
collision_mask = 0
[node name="CollisionShape2D" type="CollisionShape2D" parent="HitBox"]
position = Vector2(0, -14)
shape = SubResource("CircleShape2D_7puah")
+64
View File
@@ -0,0 +1,64 @@
[gd_scene load_steps=9 format=3 uid="uid://cr6shokga0dy6"]
[ext_resource type="Script" uid="uid://ln2lt16fi47q" path="res://Scripts/Projectiles/Projectile.cs" id="1_llqe1"]
[ext_resource type="Texture2D" uid="uid://m77l7ej5ojn0" path="res://Assets/Sprites/Projectiles/flame_attack.png" id="2_xuxqo"]
[sub_resource type="CircleShape2D" id="CircleShape2D_llqe1"]
radius = 8.062258
[sub_resource type="AtlasTexture" id="AtlasTexture_r2qu7"]
atlas = ExtResource("2_xuxqo")
region = Rect2(0, 0, 16, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_fgux0"]
atlas = ExtResource("2_xuxqo")
region = Rect2(16, 0, 16, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_fb7vg"]
atlas = ExtResource("2_xuxqo")
region = Rect2(32, 0, 16, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_y5q4i"]
atlas = ExtResource("2_xuxqo")
region = Rect2(48, 0, 16, 32)
[sub_resource type="SpriteFrames" id="SpriteFrames_0qapt"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_r2qu7")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_fgux0")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_fb7vg")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_y5q4i")
}],
"loop": true,
"name": &"default",
"speed": 5.0
}]
[node name="Fireball" type="Node2D" node_paths=PackedStringArray("_hurtBox")]
texture_filter = 1
script = ExtResource("1_llqe1")
_superEffective = Array[int]([1])
_baseDamage = 25.0
_speed = 250.0
_hurtBox = NodePath("Hurtbox")
[node name="Hurtbox" type="Area2D" parent="."]
collision_layer = 0
collision_mask = 4
[node name="CollisionShape2D" type="CollisionShape2D" parent="Hurtbox"]
shape = SubResource("CircleShape2D_llqe1")
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
self_modulate = Color(1.8247963, 1.8247963, 1.8247963, 1)
rotation = -1.5707964
sprite_frames = SubResource("SpriteFrames_0qapt")
offset = Vector2(0, -8)
+110
View File
@@ -0,0 +1,110 @@
[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")
-83
View File
@@ -1,83 +0,0 @@
[gd_scene load_steps=11 format=3 uid="uid://cx7gr555b1gov"]
[ext_resource type="Texture2D" uid="uid://be7hl01iuo5af" path="res://Assets/Sprites/Characters/Player/kitsune-Sheet.png" id="1_5wxv7"]
[ext_resource type="Script" uid="uid://8drbh4rcl410" path="res://Scripts/PlayerMovement.cs" id="2_y5hcb"]
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_wrm1d"]
radius = 2.0
height = 10.0
[sub_resource type="AtlasTexture" id="AtlasTexture_3dryh"]
atlas = ExtResource("1_5wxv7")
region = Rect2(0, 0, 16, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_wowpa"]
atlas = ExtResource("1_5wxv7")
region = Rect2(16, 0, 16, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_i6g32"]
atlas = ExtResource("1_5wxv7")
region = Rect2(32, 0, 16, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_1l0tm"]
atlas = ExtResource("1_5wxv7")
region = Rect2(48, 0, 16, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_v158k"]
atlas = ExtResource("1_5wxv7")
region = Rect2(64, 0, 16, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_h4fw4"]
atlas = ExtResource("1_5wxv7")
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
}]
[node name="Player" type="CharacterBody2D"]
y_sort_enabled = true
texture_filter = 1
collision_layer = 2
collision_mask = 5
motion_mode = 1
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2(0, -2)
rotation = 1.5707964
shape = SubResource("CapsuleShape2D_wrm1d")
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
sprite_frames = SubResource("SpriteFrames_ebmjs")
animation = &"idle"
frame_progress = 0.8244228
offset = Vector2(0, -16)
[node name="Scripts" type="Node" parent="."]
[node name="Movement" type="Node" parent="Scripts" node_paths=PackedStringArray("_body2D")]
script = ExtResource("2_y5hcb")
_body2D = NodePath("../..")
_speed = 4000.0