417 lines
12 KiB
Plaintext
417 lines
12 KiB
Plaintext
[gd_scene load_steps=47 format=3 uid="uid://cfecvvav8kkp6"]
|
|
|
|
[ext_resource type="Script" path="res://src/player/Player.cs" id="1_xcol5"]
|
|
[ext_resource type="Script" path="res://src/hitbox/Hitbox.cs" id="2_lb3qc"]
|
|
[ext_resource type="Script" path="res://src/player/PlayerStatResource.cs" id="2_xq68d"]
|
|
[ext_resource type="Texture2D" uid="uid://c6r3dhnkuw22w" path="res://src/vfx/hit_effects/FIRE_STRIKE_1.0.png" id="5_wr6lo"]
|
|
[ext_resource type="Texture2D" uid="uid://b5qjlbcesth53" path="res://src/vfx/Weapon Strikes/NON ELEMENTAL SLASH.png" id="6_p34sl"]
|
|
[ext_resource type="Texture2D" uid="uid://mjobx7ph7hf1" path="res://src/vfx/playerdot.png" id="7_8hi2n"]
|
|
[ext_resource type="PackedScene" uid="uid://ctwtksu2406c" path="res://src/player/dont_look_in_here/player_model.tscn" id="10_prmgx"]
|
|
|
|
[sub_resource type="Resource" id="Resource_btp2w"]
|
|
script = ExtResource("2_xq68d")
|
|
RotationSpeed = 1.5
|
|
MoveSpeed = 8.0
|
|
Acceleration = 1.0
|
|
CurrentHP = 100
|
|
MaximumHP = 100
|
|
CurrentVT = 90
|
|
MaximumVT = 90
|
|
CurrentExp = 0
|
|
ExpToNextLevel = 100
|
|
CurrentLevel = 1
|
|
CurrentAttack = 14
|
|
CurrentDefense = 12
|
|
MaxAttack = 14
|
|
MaxDefense = 12
|
|
BonusAttack = 0
|
|
BonusDefense = 0
|
|
Luck = 0.05
|
|
|
|
[sub_resource type="BoxShape3D" id="BoxShape3D_wedu3"]
|
|
|
|
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_dw45s"]
|
|
radius = 1.0
|
|
|
|
[sub_resource type="BoxShape3D" id="BoxShape3D_hs4wf"]
|
|
size = Vector3(1.94531, 2.43945, 2.35425)
|
|
|
|
[sub_resource type="Animation" id="Animation_hcjph"]
|
|
length = 0.001
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("Hitbox/HitboxCollision:disabled")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 1,
|
|
"values": [true]
|
|
}
|
|
tracks/1/type = "value"
|
|
tracks/1/imported = false
|
|
tracks/1/enabled = true
|
|
tracks/1/path = NodePath("SwordSlashAnimation:frame")
|
|
tracks/1/interp = 1
|
|
tracks/1/loop_wrap = true
|
|
tracks/1/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 1,
|
|
"values": [0]
|
|
}
|
|
|
|
[sub_resource type="Animation" id="Animation_0jjwv"]
|
|
resource_name = "attack"
|
|
length = 0.916675
|
|
step = 0.0833333
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("Hitbox/HitboxCollision:disabled")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0, 0.0833333, 0.333333),
|
|
"transitions": PackedFloat32Array(1, 1, 1),
|
|
"update": 1,
|
|
"values": [true, false, true]
|
|
}
|
|
tracks/1/type = "value"
|
|
tracks/1/imported = false
|
|
tracks/1/enabled = true
|
|
tracks/1/path = NodePath("SwordSlashAnimation:frame")
|
|
tracks/1/interp = 1
|
|
tracks/1/loop_wrap = true
|
|
tracks/1/keys = {
|
|
"times": PackedFloat32Array(0, 0.0833333, 0.166667, 0.25, 0.333333, 0.416667, 0.5, 0.583333, 0.666667, 0.75, 0.833333, 0.916666),
|
|
"transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1),
|
|
"update": 1,
|
|
"values": [10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]
|
|
}
|
|
|
|
[sub_resource type="Animation" id="Animation_uxo8q"]
|
|
resource_name = "explosion"
|
|
length = 3.66668
|
|
step = 0.0833333
|
|
|
|
[sub_resource type="AnimationLibrary" id="AnimationLibrary_w8l8m"]
|
|
_data = {
|
|
&"RESET": SubResource("Animation_hcjph"),
|
|
&"attack": SubResource("Animation_0jjwv"),
|
|
&"explosion": SubResource("Animation_uxo8q")
|
|
}
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_irupf"]
|
|
atlas = ExtResource("6_p34sl")
|
|
region = Rect2(300, 0, 300, 300)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_63m7j"]
|
|
atlas = ExtResource("6_p34sl")
|
|
region = Rect2(600, 0, 300, 300)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_1ypgu"]
|
|
atlas = ExtResource("6_p34sl")
|
|
region = Rect2(900, 0, 300, 300)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_d7qd7"]
|
|
atlas = ExtResource("6_p34sl")
|
|
region = Rect2(1200, 0, 300, 300)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_7heog"]
|
|
atlas = ExtResource("6_p34sl")
|
|
region = Rect2(1500, 0, 300, 300)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_x4mbv"]
|
|
atlas = ExtResource("6_p34sl")
|
|
region = Rect2(1800, 0, 300, 300)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_f7ysd"]
|
|
atlas = ExtResource("6_p34sl")
|
|
region = Rect2(2100, 0, 300, 300)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_i2p57"]
|
|
atlas = ExtResource("6_p34sl")
|
|
region = Rect2(2400, 0, 300, 300)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_tfnlg"]
|
|
atlas = ExtResource("6_p34sl")
|
|
region = Rect2(2700, 0, 300, 300)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_gvgtb"]
|
|
atlas = ExtResource("6_p34sl")
|
|
region = Rect2(3000, 0, 300, 300)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_fha34"]
|
|
atlas = ExtResource("5_wr6lo")
|
|
region = Rect2(0, 0, 450, 450)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_6es8e"]
|
|
atlas = ExtResource("5_wr6lo")
|
|
region = Rect2(450, 0, 450, 450)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_ajsk2"]
|
|
atlas = ExtResource("5_wr6lo")
|
|
region = Rect2(1350, 0, 450, 450)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_m6lxd"]
|
|
atlas = ExtResource("5_wr6lo")
|
|
region = Rect2(2250, 0, 450, 450)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_66iny"]
|
|
atlas = ExtResource("5_wr6lo")
|
|
region = Rect2(3150, 0, 450, 450)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_ifj8k"]
|
|
atlas = ExtResource("5_wr6lo")
|
|
region = Rect2(4050, 0, 450, 450)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_0sse1"]
|
|
atlas = ExtResource("5_wr6lo")
|
|
region = Rect2(4950, 0, 450, 450)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_biijj"]
|
|
atlas = ExtResource("5_wr6lo")
|
|
region = Rect2(5850, 0, 450, 450)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_ox7ae"]
|
|
atlas = ExtResource("5_wr6lo")
|
|
region = Rect2(6750, 0, 450, 450)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_0jda2"]
|
|
atlas = ExtResource("5_wr6lo")
|
|
region = Rect2(7650, 0, 450, 450)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_6i1pl"]
|
|
atlas = ExtResource("5_wr6lo")
|
|
region = Rect2(8550, 0, 450, 450)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_ivimc"]
|
|
atlas = ExtResource("5_wr6lo")
|
|
region = Rect2(9450, 0, 450, 450)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_3pwkw"]
|
|
atlas = ExtResource("5_wr6lo")
|
|
region = Rect2(10350, 0, 450, 450)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_fr7ff"]
|
|
atlas = ExtResource("5_wr6lo")
|
|
region = Rect2(11250, 0, 450, 450)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_yopcg"]
|
|
atlas = ExtResource("5_wr6lo")
|
|
region = Rect2(12150, 0, 450, 450)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_j6465"]
|
|
atlas = ExtResource("5_wr6lo")
|
|
region = Rect2(13050, 0, 450, 450)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_sqdiu"]
|
|
atlas = ExtResource("5_wr6lo")
|
|
region = Rect2(13950, 0, 450, 450)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_p3jka"]
|
|
atlas = ExtResource("5_wr6lo")
|
|
region = Rect2(0, 450, 450, 450)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_1g7qb"]
|
|
atlas = ExtResource("5_wr6lo")
|
|
region = Rect2(900, 450, 450, 450)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_7ab4x"]
|
|
atlas = ExtResource("5_wr6lo")
|
|
region = Rect2(1800, 450, 450, 450)
|
|
|
|
[sub_resource type="SpriteFrames" id="SpriteFrames_ywvvo"]
|
|
animations = [{
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": null
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_irupf")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_63m7j")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_1ypgu")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_d7qd7")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_7heog")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_x4mbv")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_f7ysd")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_i2p57")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_tfnlg")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_gvgtb")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": null
|
|
}],
|
|
"loop": false,
|
|
"name": &"attack",
|
|
"speed": 12.0
|
|
}, {
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_fha34")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_6es8e")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_ajsk2")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_m6lxd")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_66iny")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_ifj8k")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_0sse1")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_biijj")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_ox7ae")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_0jda2")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_6i1pl")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_ivimc")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_3pwkw")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_fr7ff")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_yopcg")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_j6465")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_sqdiu")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_p3jka")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_1g7qb")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_7ab4x")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": null
|
|
}],
|
|
"loop": false,
|
|
"name": &"attack_fire",
|
|
"speed": 12.0
|
|
}, {
|
|
"frames": [],
|
|
"loop": true,
|
|
"name": &"attack_water",
|
|
"speed": 12.0
|
|
}]
|
|
|
|
[node name="Player" type="CharacterBody3D"]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -2, 0)
|
|
collision_layer = 806
|
|
collision_mask = 775
|
|
script = ExtResource("1_xcol5")
|
|
PlayerStatResource = SubResource("Resource_btp2w")
|
|
|
|
[node name="Hitbox" type="Area3D" parent="."]
|
|
unique_name_in_owner = true
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, -1)
|
|
collision_layer = 16
|
|
collision_mask = 16
|
|
script = ExtResource("2_lb3qc")
|
|
|
|
[node name="HitboxCollision" type="CollisionShape3D" parent="Hitbox"]
|
|
shape = SubResource("BoxShape3D_wedu3")
|
|
disabled = true
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.937567, 0)
|
|
shape = SubResource("CapsuleShape3D_dw45s")
|
|
|
|
[node name="CollisionDetector" type="Area3D" parent="CollisionShape3D"]
|
|
unique_name_in_owner = true
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.937567, 0)
|
|
collision_layer = 196
|
|
collision_mask = 196
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="CollisionShape3D/CollisionDetector"]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.0479561, 0.982638, -0.675098)
|
|
shape = SubResource("BoxShape3D_hs4wf")
|
|
|
|
[node name="Camera3D" type="Camera3D" parent="."]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.00341564, 1.40507, 0.645068)
|
|
cull_mask = 1048569
|
|
fov = 45.0
|
|
near = 0.001
|
|
|
|
[node name="OmniLight3D" type="OmniLight3D" parent="."]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.57563, 0.620484)
|
|
omni_range = 16.633
|
|
omni_attenuation = 0.27
|
|
|
|
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
|
unique_name_in_owner = true
|
|
libraries = {
|
|
&"": SubResource("AnimationLibrary_w8l8m")
|
|
}
|
|
|
|
[node name="HealthTimer" type="Timer" parent="."]
|
|
unique_name_in_owner = true
|
|
process_mode = 1
|
|
wait_time = 3.0
|
|
autostart = true
|
|
|
|
[node name="player_model" parent="." instance=ExtResource("10_prmgx")]
|
|
visible = false
|
|
|
|
[node name="SwordSlashAnimation" type="AnimatedSprite2D" parent="."]
|
|
unique_name_in_owner = true
|
|
texture_filter = 1
|
|
position = Vector2(983, 555)
|
|
scale = Vector2(3, 3)
|
|
sprite_frames = SubResource("SpriteFrames_ywvvo")
|
|
animation = &"attack"
|
|
flip_h = true
|
|
flip_v = true
|
|
|
|
[node name="Sprite3D" type="Sprite3D" parent="."]
|
|
layers = 2
|
|
pixel_size = 0.025
|
|
axis = 1
|
|
texture = ExtResource("7_8hi2n")
|