Compare commits

..

1 Commits

Author SHA1 Message Date
361b2c9681 Experimenting with vscode as a live source editor 2026-03-11 23:14:27 -07:00
2 changed files with 35 additions and 29 deletions

19
.vscode/launch.json vendored Normal file
View File

@ -0,0 +1,19 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "GDScript: Launch Project",
"type": "godot",
"request": "launch",
"project": "${workspaceFolder}",
"debug_collisions": false,
"debug_paths": false,
"debug_navigation": false,
"additional_options": ""
}
]
}

View File

@ -1,4 +1,4 @@
[gd_scene load_steps=45 format=2] [gd_scene load_steps=43 format=2]
[ext_resource path="res://lib/parent_scenes/actor.tscn" type="PackedScene" id=1] [ext_resource path="res://lib/parent_scenes/actor.tscn" type="PackedScene" id=1]
[ext_resource path="res://assets/actors/players/playerE/PlayerE_SpriteFrames.tres" type="SpriteFrames" id=2] [ext_resource path="res://assets/actors/players/playerE/PlayerE_SpriteFrames.tres" type="SpriteFrames" id=2]
@ -35,7 +35,6 @@
[ext_resource path="res://lib/components/Hitbox_Component.tscn" type="PackedScene" id=33] [ext_resource path="res://lib/components/Hitbox_Component.tscn" type="PackedScene" id=33]
[ext_resource path="res://src/actors/players/playerE/Hurtbox-CollisionShape2D_StateReceiver.gd" type="Script" id=34] [ext_resource path="res://src/actors/players/playerE/Hurtbox-CollisionShape2D_StateReceiver.gd" type="Script" id=34]
[ext_resource path="res://lib/components/Modifier_Receiver.tscn" type="PackedScene" id=35] [ext_resource path="res://lib/components/Modifier_Receiver.tscn" type="PackedScene" id=35]
[ext_resource path="res://lib/classes/animated_sprite_state_receiver.gd" type="Script" id=36]
[sub_resource type="Resource" id=3] [sub_resource type="Resource" id=3]
resource_local_to_scene = true resource_local_to_scene = true
@ -53,14 +52,6 @@ preserve_inertia = true
is_grounded = true is_grounded = true
animation_sequence = [ "hurt" ] animation_sequence = [ "hurt" ]
[sub_resource type="SpriteFrames" id=8]
animations = [ {
"frames": [ ],
"loop": true,
"name": "default",
"speed": 5.0
} ]
[sub_resource type="Resource" id=4] [sub_resource type="Resource" id=4]
script = ExtResource( 24 ) script = ExtResource( 24 )
state_name = "move" state_name = "move"
@ -120,47 +111,43 @@ __meta__ = {
} }
} }
[node name="AnimatedSprite_StateReceiver_Torso" type="AnimatedSprite" parent="." index="2"] [node name="Movement_StateReceiver" parent="." index="2"]
frames = SubResource( 8 )
script = ExtResource( 36 )
[node name="Movement_StateReceiver" parent="." index="3"]
script = ExtResource( 6 ) script = ExtResource( 6 )
debug_velocity_controller = false debug_velocity_controller = false
[node name="Modifier_Receiver" parent="." index="4" instance=ExtResource( 35 )] [node name="Modifier_Receiver" parent="." index="3" instance=ExtResource( 35 )]
callable_state_machine = NodePath("../Movement_StateMachine") callable_state_machine = NodePath("../Movement_StateMachine")
debug_receiver = true debug_receiver = true
[node name="LedgeDetector" type="RayCast2D" parent="." index="5"] [node name="LedgeDetector" type="RayCast2D" parent="." index="4"]
unique_name_in_owner = true unique_name_in_owner = true
modulate = Color( 0, 1, 0, 1 ) modulate = Color( 0, 1, 0, 1 )
position = Vector2( 6, -10 ) position = Vector2( 6, -10 )
enabled = true enabled = true
cast_to = Vector2( 4, -1 ) cast_to = Vector2( 4, -1 )
[node name="WallDetector" type="RayCast2D" parent="." index="6"] [node name="WallDetector" type="RayCast2D" parent="." index="5"]
unique_name_in_owner = true unique_name_in_owner = true
modulate = Color( 0, 1, 0, 1 ) modulate = Color( 0, 1, 0, 1 )
position = Vector2( 6, -16 ) position = Vector2( 6, -16 )
enabled = true enabled = true
cast_to = Vector2( 4, 4 ) cast_to = Vector2( 4, 4 )
[node name="JumpAdjustorBack" type="RayCast2D" parent="." index="7"] [node name="JumpAdjustorBack" type="RayCast2D" parent="." index="6"]
unique_name_in_owner = true unique_name_in_owner = true
modulate = Color( 0, 1, 0, 1 ) modulate = Color( 0, 1, 0, 1 )
position = Vector2( -8, -12 ) position = Vector2( -8, -12 )
enabled = true enabled = true
cast_to = Vector2( 5, -14 ) cast_to = Vector2( 5, -14 )
[node name="JumpAdjustorFront" type="RayCast2D" parent="." index="8"] [node name="JumpAdjustorFront" type="RayCast2D" parent="." index="7"]
unique_name_in_owner = true unique_name_in_owner = true
modulate = Color( 0, 1, 0, 1 ) modulate = Color( 0, 1, 0, 1 )
position = Vector2( 7, -12 ) position = Vector2( 7, -12 )
enabled = true enabled = true
cast_to = Vector2( -5, -14 ) cast_to = Vector2( -5, -14 )
[node name="LadderDetector" type="RayCast2D" parent="." index="9"] [node name="LadderDetector" type="RayCast2D" parent="." index="8"]
unique_name_in_owner = true unique_name_in_owner = true
modulate = Color( 0, 1, 0, 1 ) modulate = Color( 0, 1, 0, 1 )
enabled = true enabled = true
@ -169,25 +156,25 @@ collision_mask = 1024
collide_with_areas = true collide_with_areas = true
collide_with_bodies = false collide_with_bodies = false
[node name="AudioStreamPlayer_StateReceiver" parent="." index="10"] [node name="AudioStreamPlayer_StateReceiver" parent="." index="9"]
sound_effects = [ SubResource( 4 ), SubResource( 5 ), SubResource( 6 ) ] sound_effects = [ SubResource( 4 ), SubResource( 5 ), SubResource( 6 ) ]
[node name="CollisionShape2D" type="CollisionShape2D" parent="." index="11"] [node name="CollisionShape2D" type="CollisionShape2D" parent="." index="10"]
position = Vector2( 0, 2 ) position = Vector2( 0, 2 )
shape = SubResource( 1 ) shape = SubResource( 1 )
script = ExtResource( 31 ) script = ExtResource( 31 )
callable_state_machine = NodePath("../Movement_StateMachine") callable_state_machine = NodePath("../Movement_StateMachine")
[node name="Health_Component" parent="." index="12" instance=ExtResource( 17 )] [node name="Health_Component" parent="." index="11" instance=ExtResource( 17 )]
unique_name_in_owner = true unique_name_in_owner = true
max_health = 100 max_health = 100
[node name="Stamina_Component" parent="." index="13" instance=ExtResource( 29 )] [node name="Stamina_Component" parent="." index="12" instance=ExtResource( 29 )]
unique_name_in_owner = true unique_name_in_owner = true
max_stamina = 50 max_stamina = 50
recovery_rate = 2 recovery_rate = 2
[node name="Hurtbox_Component" parent="." index="14" instance=ExtResource( 16 )] [node name="Hurtbox_Component" parent="." index="13" instance=ExtResource( 16 )]
collision_layer = 16 collision_layer = 16
collision_mask = 128 collision_mask = 128
hurtbox_entered_function = "hit_Receiver" hurtbox_entered_function = "hit_Receiver"
@ -199,13 +186,13 @@ shape = SubResource( 2 )
script = ExtResource( 34 ) script = ExtResource( 34 )
callable_state_machine = NodePath("../../Movement_StateMachine") callable_state_machine = NodePath("../../Movement_StateMachine")
[node name="Interactable_Receiver" type="Node" parent="." index="15"] [node name="Interactable_Receiver" type="Node" parent="." index="14"]
script = ExtResource( 21 ) script = ExtResource( 21 )
interactable_parent_callback = "touch_the_thing" interactable_parent_callback = "touch_the_thing"
[node name="PewMachine" parent="." index="16" instance=ExtResource( 28 )] [node name="PewMachine" parent="." index="15" instance=ExtResource( 28 )]
[node name="Hitbox_Component" parent="." index="17" instance=ExtResource( 33 )] [node name="Hitbox_Component" parent="." index="16" instance=ExtResource( 33 )]
collision_layer = 192 collision_layer = 192
damage_amount = 10 damage_amount = 10