179 lines
5.9 KiB
Plaintext
179 lines
5.9 KiB
Plaintext
[gd_scene load_steps=23 format=3 uid="uid://d3e5mg0gk8u7r"]
|
|
|
|
[ext_resource type="Texture2D" uid="uid://byx166hd5b3as" path="res://gfx/game/maps/entities/player/Idle/Untitled-0_0.png" id="1_li2a0"]
|
|
[ext_resource type="Script" uid="uid://bo0had2vq4r7h" path="res://scripts/game/maps/entities/mob.gd" id="1_mu6cs"]
|
|
[ext_resource type="Texture2D" uid="uid://gm5dhmls0klm" path="res://gfx/game/maps/entities/player/WalkLeft/Untitled-3_0.png" id="2_mu6cs"]
|
|
[ext_resource type="Texture2D" uid="uid://cio1xyswbao5j" path="res://gfx/game/maps/entities/player/WalkRight/Untitled-3_0.png" id="3_tvinw"]
|
|
[ext_resource type="Texture2D" uid="uid://svg30tifp74r" path="res://gfx/game/maps/entities/player/WalkUp/Untitled-2_0.png" id="4_cdxgq"]
|
|
[ext_resource type="Texture2D" uid="uid://puqpn3m0ejv1" path="res://gfx/game/maps/entities/player/WalkDown/Untitled-2_0.png" id="5_at8px"]
|
|
[ext_resource type="Texture2D" uid="uid://bel7ltrdmhvx3" path="res://gfx/game/maps/entities/player/WalkDown/Untitled-2_1.png" id="6_0c3te"]
|
|
[ext_resource type="Texture2D" uid="uid://bvallk0cswtnq" path="res://gfx/game/maps/entities/player/WalkDown/Untitled-2_2.png" id="7_ocsku"]
|
|
[ext_resource type="Texture2D" uid="uid://b4ptv7ts0nlhu" path="res://gfx/game/maps/entities/player/WalkDown/Untitled-2_3.png" id="8_4gtxe"]
|
|
[ext_resource type="Texture2D" uid="uid://ddw1m0c2pby4c" path="res://gfx/game/maps/entities/player/WalkLeft/Untitled-3_1.png" id="9_528k0"]
|
|
[ext_resource type="Texture2D" uid="uid://brsuvqye8vfji" path="res://gfx/game/maps/entities/player/WalkLeft/Untitled-3_2.png" id="10_tqi7e"]
|
|
[ext_resource type="Texture2D" uid="uid://cnnbbvgvnprqv" path="res://gfx/game/maps/entities/player/WalkLeft/Untitled-3_3.png" id="11_f0uy0"]
|
|
[ext_resource type="Texture2D" uid="uid://by38ifhhoq0iv" path="res://gfx/game/maps/entities/player/WalkRight/Untitled-3_1.png" id="12_lpgkr"]
|
|
[ext_resource type="Texture2D" uid="uid://cooxpasywe0a6" path="res://gfx/game/maps/entities/player/WalkRight/Untitled-3_2.png" id="13_s0xe7"]
|
|
[ext_resource type="Texture2D" uid="uid://byqc5gd0r2ija" path="res://gfx/game/maps/entities/player/WalkRight/Untitled-3_3.png" id="14_bwdti"]
|
|
[ext_resource type="Texture2D" uid="uid://vu0jihe8b75u" path="res://gfx/game/maps/entities/player/WalkUp/Untitled-2_1.png" id="15_78mif"]
|
|
[ext_resource type="Texture2D" uid="uid://cpw3bdg07t8s7" path="res://gfx/game/maps/entities/player/WalkUp/Untitled-2_2.png" id="16_o4153"]
|
|
[ext_resource type="Texture2D" uid="uid://b2068kd1mmpsh" path="res://gfx/game/maps/entities/player/WalkUp/Untitled-2_3.png" id="17_7e337"]
|
|
|
|
[sub_resource type="SpriteFrames" id="SpriteFrames_5m0ve"]
|
|
resource_local_to_scene = true
|
|
animations = [{
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": ExtResource("1_li2a0")
|
|
}],
|
|
"loop": true,
|
|
"name": &"Idle Down",
|
|
"speed": 5.0
|
|
}, {
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": ExtResource("2_mu6cs")
|
|
}],
|
|
"loop": true,
|
|
"name": &"Idle Left",
|
|
"speed": 5.0
|
|
}, {
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": ExtResource("3_tvinw")
|
|
}],
|
|
"loop": true,
|
|
"name": &"Idle Right",
|
|
"speed": 5.0
|
|
}, {
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": ExtResource("4_cdxgq")
|
|
}],
|
|
"loop": true,
|
|
"name": &"Idle Up",
|
|
"speed": 5.0
|
|
}, {
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": ExtResource("5_at8px")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": ExtResource("6_0c3te")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": ExtResource("7_ocsku")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": ExtResource("8_4gtxe")
|
|
}],
|
|
"loop": true,
|
|
"name": &"Walk Down",
|
|
"speed": 5.0
|
|
}, {
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": ExtResource("2_mu6cs")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": ExtResource("9_528k0")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": ExtResource("10_tqi7e")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": ExtResource("11_f0uy0")
|
|
}],
|
|
"loop": true,
|
|
"name": &"Walk Left",
|
|
"speed": 5.0
|
|
}, {
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": ExtResource("3_tvinw")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": ExtResource("12_lpgkr")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": ExtResource("13_s0xe7")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": ExtResource("14_bwdti")
|
|
}],
|
|
"loop": true,
|
|
"name": &"Walk Right",
|
|
"speed": 5.0
|
|
}, {
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": ExtResource("4_cdxgq")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": ExtResource("15_78mif")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": ExtResource("16_o4153")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": ExtResource("17_7e337")
|
|
}],
|
|
"loop": true,
|
|
"name": &"Walk Up",
|
|
"speed": 5.0
|
|
}]
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_mu6cs"]
|
|
size = Vector2(4, 4)
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_tvinw"]
|
|
size = Vector2(16, 16)
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_mu6cs"]
|
|
radius = 8.0
|
|
|
|
[node name="Mob" type="Node2D" node_paths=PackedStringArray("animator", "collisionRay_1", "collisionRay_2", "speechCollider")]
|
|
script = ExtResource("1_mu6cs")
|
|
animator = NodePath("AnimatedSprite2D")
|
|
collisionRay_1 = NodePath("CollisionRayCast_1")
|
|
collisionRay_2 = NodePath("CollisionRayCast_2")
|
|
speechCollider = NodePath("SpeachRadius")
|
|
|
|
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
|
position = Vector2(8, 8)
|
|
sprite_frames = SubResource("SpriteFrames_5m0ve")
|
|
animation = &"Idle Down"
|
|
|
|
[node name="CollisionRayCast_1" type="RayCast2D" parent="."]
|
|
position = Vector2(8, 8)
|
|
target_position = Vector2(0, 16)
|
|
collision_mask = 5
|
|
|
|
[node name="CollisionRayCast_2" type="RayCast2D" parent="."]
|
|
position = Vector2(8, 8)
|
|
target_position = Vector2(0, 16)
|
|
collision_mask = 5
|
|
|
|
[node name="MapTriggerCollider" type="Area2D" parent="."]
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="MapTriggerCollider"]
|
|
position = Vector2(8, 8)
|
|
shape = SubResource("RectangleShape2D_mu6cs")
|
|
|
|
[node name="Collider" type="RigidBody2D" parent="."]
|
|
collision_layer = 6
|
|
collision_mask = 6
|
|
freeze = true
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Collider"]
|
|
position = Vector2(8, 8)
|
|
shape = SubResource("RectangleShape2D_tvinw")
|
|
|
|
[node name="SpeachRadius" type="Area2D" parent="."]
|
|
collision_layer = 4
|
|
collision_mask = 2
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="SpeachRadius"]
|
|
position = Vector2(8, 8)
|
|
shape = SubResource("CircleShape2D_mu6cs")
|