Initial commit

This commit is contained in:
Matthew Barbour
2026-08-30 01:17:38 -05:00
parent f983ab64ce
commit 17cedb8bf1
68 changed files with 2035 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
[gd_scene format=3 uid="uid://d3vp4xma2cse0"]
[ext_resource type="Script" uid="uid://dodiyff5iaog0" path="res://entities/lucca/scripts/lucca.gd" id="1_whafu"]
[ext_resource type="SpriteFrames" uid="uid://blbpxj72vsx6m" path="res://entities/lucca/sprites/lucca_sprite_frames.tres" id="1_xt5e8"]
[ext_resource type="Script" uid="uid://bp4pd1ek1cqnn" path="res://shared/helpers/dialogue_marker.gd" id="2_whafu"]
[node name="Lucca" type="Node2D" unique_id=415668403]
texture_filter = 1
scale = Vector2(5, 5)
script = ExtResource("1_whafu")
[node name="Sprite" type="AnimatedSprite2D" parent="." unique_id=1127738335]
sprite_frames = ExtResource("1_xt5e8")
animation = &"stand_south"
autoplay = "stand_south"
offset = Vector2(0, -16)
[node name="DialogueMarker" type="Marker2D" parent="." unique_id=1371164534]
position = Vector2(0, -34.399998)
script = ExtResource("2_whafu")
color = Color(0.9607843, 0, 0, 1)
character_name = "Jimmy"
metadata/_custom_type_script = "uid://bp4pd1ek1cqnn"
+26
View File
@@ -0,0 +1,26 @@
extends Node2D
func _ready() -> void:
Events.character_started_talking.connect(_on_character_started_talking)
Events.character_finished_talking.connect(_on_character_finished_talking)
func play_animation(name, flip):
$Sprite.flip_h = flip;
$Sprite.play(name)
#region Signals
func _on_character_started_talking(character_name: String) -> void:
if character_name == "Jimmy":
$Sprite.play("talk")
func _on_character_finished_talking(character_name: String) -> void:
if character_name == "Jimmy":
$Sprite.play("stand_south")
#endregion
+1
View File
@@ -0,0 +1 @@
uid://dodiyff5iaog0
Binary file not shown.
+40
View File
@@ -0,0 +1,40 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://x5wa821apb8d"
path="res://.godot/imported/lucca.png-226d9bc4a9549d17b5c311fe0c8e0a5a.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://entities/lucca/sprites/lucca.png"
dest_files=["res://.godot/imported/lucca.png-226d9bc4a9549d17b5c311fe0c8e0a5a.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/uastc_level=0
compress/rdo_quality_loss=0.0
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/channel_remap/red=0
process/channel_remap/green=1
process/channel_remap/blue=2
process/channel_remap/alpha=3
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1
@@ -0,0 +1,213 @@
[gd_resource type="SpriteFrames" format=3 uid="uid://blbpxj72vsx6m"]
[ext_resource type="Texture2D" uid="uid://x5wa821apb8d" path="res://entities/lucca/sprites/lucca.png" id="1_2irlu"]
[sub_resource type="AtlasTexture" id="AtlasTexture_lf0m3"]
atlas = ExtResource("1_2irlu")
region = Rect2(142, 300, 16, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_76fy0"]
atlas = ExtResource("1_2irlu")
region = Rect2(163, 300, 16, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_y01u6"]
atlas = ExtResource("1_2irlu")
region = Rect2(63, 89, 16, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_xt5e8"]
atlas = ExtResource("1_2irlu")
region = Rect2(63, 49, 16, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_whafu"]
atlas = ExtResource("1_2irlu")
region = Rect2(63, 6, 16, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_64way"]
atlas = ExtResource("1_2irlu")
region = Rect2(93, 89, 14, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_yagq6"]
atlas = ExtResource("1_2irlu")
region = Rect2(112, 89, 14, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_y3616"]
atlas = ExtResource("1_2irlu")
region = Rect2(131, 89, 14, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_p0yg2"]
atlas = ExtResource("1_2irlu")
region = Rect2(150, 89, 14, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_bg6hq"]
atlas = ExtResource("1_2irlu")
region = Rect2(169, 89, 14, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_qjfl3"]
atlas = ExtResource("1_2irlu")
region = Rect2(190, 89, 14, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_cdemb"]
atlas = ExtResource("1_2irlu")
region = Rect2(92, 49, 16, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_w7i82"]
atlas = ExtResource("1_2irlu")
region = Rect2(111, 49, 16, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_m2qxj"]
atlas = ExtResource("1_2irlu")
region = Rect2(130, 49, 16, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_7xvav"]
atlas = ExtResource("1_2irlu")
region = Rect2(149, 49, 16, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_aakwy"]
atlas = ExtResource("1_2irlu")
region = Rect2(169, 49, 16, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_fwkcb"]
atlas = ExtResource("1_2irlu")
region = Rect2(189, 49, 16, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_8gyla"]
atlas = ExtResource("1_2irlu")
region = Rect2(92, 6, 16, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_fomjn"]
atlas = ExtResource("1_2irlu")
region = Rect2(111, 6, 16, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_7st6c"]
atlas = ExtResource("1_2irlu")
region = Rect2(130, 6, 16, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_5cf0q"]
atlas = ExtResource("1_2irlu")
region = Rect2(149, 6, 16, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_tmwin"]
atlas = ExtResource("1_2irlu")
region = Rect2(169, 6, 16, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_n323n"]
atlas = ExtResource("1_2irlu")
region = Rect2(189, 6, 16, 32)
[resource]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_lf0m3")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_76fy0")
}],
"loop": 1,
"name": &"drink",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_y01u6")
}],
"loop": 1,
"name": &"stand_east",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_xt5e8")
}],
"loop": 1,
"name": &"stand_north",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_whafu")
}],
"loop": 1,
"name": &"stand_south",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_lf0m3")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_76fy0")
}],
"loop": 1,
"name": &"talk",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_64way")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_yagq6")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_y3616")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_p0yg2")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_bg6hq")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_qjfl3")
}],
"loop": 1,
"name": &"walk_east",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_cdemb")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_w7i82")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_m2qxj")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_7xvav")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_aakwy")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_fwkcb")
}],
"loop": 1,
"name": &"walk_north",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_8gyla")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_fomjn")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_7st6c")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_5cf0q")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_tmwin")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_n323n")
}],
"loop": 1,
"name": &"walk_south",
"speed": 8.0
}]
+20
View File
@@ -0,0 +1,20 @@
[gd_scene format=3 uid="uid://nt43v1uyni2b"]
[ext_resource type="Script" uid="uid://bbee4w8xyxiii" path="res://entities/magus/scripts/magus.gd" id="1_0jt1g"]
[ext_resource type="SpriteFrames" uid="uid://dv7ukgk6k5kv" path="res://entities/magus/sprites/magus_sprite_frames.tres" id="1_onv7e"]
[ext_resource type="Script" uid="uid://bp4pd1ek1cqnn" path="res://shared/helpers/dialogue_marker.gd" id="2_0jt1g"]
[node name="Magus" type="Node2D" unique_id=629939891]
scale = Vector2(5, 5)
script = ExtResource("1_0jt1g")
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="." unique_id=1954953550]
sprite_frames = ExtResource("1_onv7e")
autoplay = "default"
offset = Vector2(0, -16)
[node name="DialogueMarker" type="Marker2D" parent="." unique_id=529368210]
position = Vector2(0, -36.8)
script = ExtResource("2_0jt1g")
color = Color(1, 0, 1, 1)
character_name = "Elwood"
+25
View File
@@ -0,0 +1,25 @@
extends Node2D
@onready var animation_player: AnimationPlayer = $AnimationPlayer
func _ready() -> void:
Events.character_started_talking.connect(_on_character_started_talking)
Events.character_finished_talking.connect(_on_character_finished_talking)
#region Signals
func _on_character_started_talking(character_name: String) -> void:
if character_name == "Elwood":
$AnimatedSprite2D.play("talk")
func _on_character_finished_talking(character_name: String) -> void:
if character_name == "Elwood":
$AnimatedSprite2D.play("default")
#endregion
+1
View File
@@ -0,0 +1 @@
uid://bbee4w8xyxiii
Binary file not shown.
+40
View File
@@ -0,0 +1,40 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://cw70qdoiwnhir"
path="res://.godot/imported/magus.png-accec5791145174bb40e684340ba2d42.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://entities/magus/sprites/magus.png"
dest_files=["res://.godot/imported/magus.png-accec5791145174bb40e684340ba2d42.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/uastc_level=0
compress/rdo_quality_loss=0.0
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/channel_remap/red=0
process/channel_remap/green=1
process/channel_remap/blue=2
process/channel_remap/alpha=3
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1
@@ -0,0 +1,44 @@
[gd_resource type="SpriteFrames" format=3 uid="uid://dv7ukgk6k5kv"]
[ext_resource type="Texture2D" uid="uid://cw70qdoiwnhir" path="res://entities/magus/sprites/magus.png" id="1_8aab7"]
[sub_resource type="AtlasTexture" id="AtlasTexture_onv7e"]
atlas = ExtResource("1_8aab7")
region = Rect2(319, 6, 30, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_0jt1g"]
atlas = ExtResource("1_8aab7")
region = Rect2(351, 7, 30, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_u2jd0"]
atlas = ExtResource("1_8aab7")
region = Rect2(670, 8, 19, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_no6fi"]
atlas = ExtResource("1_8aab7")
region = Rect2(692, 8, 19, 32)
[resource]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_onv7e")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_0jt1g")
}],
"loop": 1,
"name": &"default",
"speed": 2.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_u2jd0")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_no6fi")
}],
"loop": 1,
"name": &"talk",
"speed": 5.0
}]