generated from krampus/template-godot4
193 lines
5.1 KiB
Plaintext
193 lines
5.1 KiB
Plaintext
|
|
[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(1, 1)
|
||
|
|
|
||
|
|
[node name="Citizen" type="CharacterBody2D" unique_id=927998924]
|
||
|
|
process_mode = 1
|
||
|
|
z_index = 2
|
||
|
|
y_sort_enabled = true
|
||
|
|
collision_layer = 4
|
||
|
|
collision_mask = 3
|
||
|
|
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
|
||
|
|
collision_mask = 4
|
||
|
|
|
||
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="TileArea" unique_id=1001840681]
|
||
|
|
shape = SubResource("RectangleShape2D_f20g1")
|
||
|
|
|
||
|
|
[connection signal="area_entered" from="TileArea" to="." method="handle_tile_area_entered"]
|