clockwork-city/prefabs/citizen.tscn

224 lines
5.9 KiB
Plaintext
Raw Permalink Normal View History

2026-04-13 11:34:00 -05:00
[gd_scene format=3 uid="uid://bwx0lqtkd2jd7"]
[ext_resource type="Texture2D" uid="uid://mp8uhhjx1orc" path="res://assets/Assets/Prototype_Character/prototype_character.png" id="1_3aquc"]
[ext_resource type="Script" uid="uid://c1mxsofcur8bg" path="res://prefabs/citizen.gd" id="1_noc4a"]
[sub_resource type="AtlasTexture" id="AtlasTexture_noc4a"]
atlas = ExtResource("1_3aquc")
region = Rect2(0, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_ihwdb"]
atlas = ExtResource("1_3aquc")
region = Rect2(32, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_qwd63"]
atlas = ExtResource("1_3aquc")
region = Rect2(0, 96, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_q7w01"]
atlas = ExtResource("1_3aquc")
region = Rect2(32, 96, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_vsols"]
atlas = ExtResource("1_3aquc")
region = Rect2(64, 96, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_1e6ur"]
atlas = ExtResource("1_3aquc")
region = Rect2(96, 96, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_uch7b"]
atlas = ExtResource("1_3aquc")
region = Rect2(0, 128, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_01cm5"]
atlas = ExtResource("1_3aquc")
region = Rect2(32, 128, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_mq2ic"]
atlas = ExtResource("1_3aquc")
region = Rect2(64, 128, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_fat3w"]
atlas = ExtResource("1_3aquc")
region = Rect2(96, 128, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_bjwpq"]
atlas = ExtResource("1_3aquc")
region = Rect2(0, 128, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_ixmbj"]
atlas = ExtResource("1_3aquc")
region = Rect2(32, 128, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_mrbdi"]
atlas = ExtResource("1_3aquc")
region = Rect2(64, 128, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_vwupa"]
atlas = ExtResource("1_3aquc")
region = Rect2(96, 128, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_nh8sr"]
atlas = ExtResource("1_3aquc")
region = Rect2(0, 160, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_t0bmm"]
atlas = ExtResource("1_3aquc")
region = Rect2(32, 160, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_qyy2o"]
atlas = ExtResource("1_3aquc")
region = Rect2(64, 160, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_1i0m7"]
atlas = ExtResource("1_3aquc")
region = Rect2(96, 160, 32, 32)
[sub_resource type="SpriteFrames" id="SpriteFrames_ide55"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_noc4a")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_ihwdb")
}],
"loop": true,
"name": &"idle",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_qwd63")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_q7w01")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_vsols")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_1e6ur")
}],
"loop": true,
"name": &"walk_down",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_uch7b")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_01cm5")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_mq2ic")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_fat3w")
}],
"loop": true,
"name": &"walk_left",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_bjwpq")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_ixmbj")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_mrbdi")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_vwupa")
}],
"loop": true,
"name": &"walk_right",
"speed": 7.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_nh8sr")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_t0bmm")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_qyy2o")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_1i0m7")
}],
"loop": true,
"name": &"walk_up",
"speed": 5.0
}]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_noc4a"]
size = Vector2(18, 18)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_f20g1"]
size = Vector2(108, 108)
2026-04-13 11:34:00 -05:00
[sub_resource type="LabelSettings" id="LabelSettings_f20g1"]
font_color = Color(0, 1, 0, 1)
outline_size = 4
outline_color = Color(0, 0, 0, 1)
[node name="Citizen" type="CharacterBody2D" unique_id=927998924 groups=["Pausable", "PostTurnActions"]]
2026-04-13 11:34:00 -05:00
process_mode = 1
z_index = 2
y_sort_enabled = true
collision_layer = 4
script = ExtResource("1_noc4a")
[node name="AnimatedSprite" type="AnimatedSprite2D" parent="." unique_id=53044239]
unique_name_in_owner = true
texture_filter = 1
sprite_frames = SubResource("SpriteFrames_ide55")
animation = &"walk_right"
[node name="SpriteCollision" type="CollisionShape2D" parent="." unique_id=1500617348]
unique_name_in_owner = true
shape = SubResource("RectangleShape2D_noc4a")
[node name="TileArea" type="Area2D" parent="." unique_id=1604684578]
unique_name_in_owner = true
collision_layer = 0
[node name="CollisionShape2D" type="CollisionShape2D" parent="TileArea" unique_id=1001840681]
shape = SubResource("RectangleShape2D_f20g1")
[node name="MoneyLabel" type="Label" parent="." unique_id=1230846527]
unique_name_in_owner = true
modulate = Color(1, 1, 1, 0)
z_index = 1
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -5.0
offset_top = -11.0
offset_right = 5.0
offset_bottom = 12.0
grow_horizontal = 2
grow_vertical = 2
size_flags_horizontal = 4
text = "$"
label_settings = SubResource("LabelSettings_f20g1")
[node name="StatusContainer" type="HBoxContainer" parent="." unique_id=139088788]
unique_name_in_owner = true
z_index = 1
offset_left = 5.0
offset_top = -5.0
offset_right = 26.0
offset_bottom = 5.0
theme_override_constants/separation = 1
[connection signal="area_exited" from="TileArea" to="." method="handle_tile_area_exited"]