Refactor Player class to use components, also use components in Enemy class types and fiddle with boss structure
This commit is contained in:
@@ -1,32 +1,10 @@
|
||||
[gd_scene load_steps=47 format=3 uid="uid://cfecvvav8kkp6"]
|
||||
[gd_scene load_steps=45 format=3 uid="uid://cfecvvav8kkp6"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://yxmiqy7i0t7r" path="res://src/player/Player.cs" id="1_xcol5"]
|
||||
[ext_resource type="Script" uid="uid://s6ku2kyc4rbk" path="res://src/player/PlayerStatResource.cs" id="2_ebyyx"]
|
||||
[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"]
|
||||
|
||||
[sub_resource type="Resource" id="Resource_bj1ma"]
|
||||
script = ExtResource("2_ebyyx")
|
||||
RotationSpeed = 1.5
|
||||
MoveSpeed = 4.0
|
||||
Acceleration = 2.0
|
||||
CurrentHP = 100
|
||||
MaximumHP = 100
|
||||
CurrentVT = 100
|
||||
MaximumVT = 100
|
||||
CurrentExp = 0
|
||||
ExpToNextLevel = 12
|
||||
CurrentLevel = 1
|
||||
CurrentAttack = 10
|
||||
BonusAttack = 0
|
||||
MaxAttack = 10
|
||||
CurrentDefense = 10
|
||||
BonusDefense = 0
|
||||
MaxDefense = 10
|
||||
Luck = 0.1
|
||||
metadata/_custom_type_script = "uid://s6ku2kyc4rbk"
|
||||
|
||||
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_dw45s"]
|
||||
radius = 1.0
|
||||
height = 3.07596
|
||||
@@ -357,7 +335,7 @@ animations = [{
|
||||
size = Vector3(1, 1, 1.80176)
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_hs4wf"]
|
||||
size = Vector3(1.94531, 3.38623, 1.50671)
|
||||
size = Vector3(2, 3, 1)
|
||||
|
||||
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_es4xk"]
|
||||
height = 1.6909
|
||||
@@ -366,7 +344,6 @@ height = 1.6909
|
||||
collision_layer = 802
|
||||
collision_mask = 775
|
||||
script = ExtResource("1_xcol5")
|
||||
_playerStatResource = SubResource("Resource_bj1ma")
|
||||
|
||||
[node name="PlayerGeometryCollision" type="CollisionShape3D" parent="."]
|
||||
transform = Transform3D(-0.0242399, 0.00507889, 0.999693, 0.000123113, 0.999987, -0.00507739, -0.999706, 0, -0.0242402, 0, 1.06447, 0.00162865)
|
||||
@@ -447,7 +424,7 @@ disabled = true
|
||||
unique_name_in_owner = true
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.126903, 0)
|
||||
collision_layer = 448
|
||||
collision_mask = 452
|
||||
collision_mask = 388
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="Collision/CollisionDetector"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.0479561, 0.509249, 0.0101219)
|
||||
|
||||
Reference in New Issue
Block a user