Files
RPG-Test/scenes/player.tscn
2023-02-03 13:02:49 +01:00

135 lines
3.6 KiB
Plaintext

[gd_scene load_steps=14 format=3 uid="uid://bxaheg7l4h1ip"]
[ext_resource type="Script" path="res://src/scene-scripts/player.cs" id="1_qehox"]
[ext_resource type="Texture2D" uid="uid://olceowuycu8c" path="res://assets/textures/debug/dummy-player-atlas.png" id="2_yu1q5"]
[ext_resource type="PackedScene" uid="uid://cg86tsupfq53i" path="res://scenes/gui/dialog_bubble.tscn" id="3_8f573"]
[sub_resource type="AtlasTexture" id="AtlasTexture_tokqm"]
atlas = ExtResource("2_yu1q5")
region = Rect2(0, 0, 83, 127)
[sub_resource type="AtlasTexture" id="AtlasTexture_qomfj"]
atlas = ExtResource("2_yu1q5")
region = Rect2(168, 0, 84, 128)
[sub_resource type="AtlasTexture" id="AtlasTexture_bsfbd"]
atlas = ExtResource("2_yu1q5")
region = Rect2(84, 0, 83, 127)
[sub_resource type="AtlasTexture" id="AtlasTexture_ulejc"]
atlas = ExtResource("2_yu1q5")
region = Rect2(252, 0, 84, 128)
[sub_resource type="AtlasTexture" id="AtlasTexture_1x805"]
atlas = ExtResource("2_yu1q5")
region = Rect2(252, 128, 84, 128)
[sub_resource type="AtlasTexture" id="AtlasTexture_x338k"]
atlas = ExtResource("2_yu1q5")
region = Rect2(0, 128, 84, 128)
[sub_resource type="AtlasTexture" id="AtlasTexture_6ynw8"]
atlas = ExtResource("2_yu1q5")
region = Rect2(84, 128, 84, 128)
[sub_resource type="AtlasTexture" id="AtlasTexture_2yirn"]
atlas = ExtResource("2_yu1q5")
region = Rect2(168, 128, 84, 128)
[sub_resource type="SpriteFrames" id="SpriteFrames_2x1cy"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_tokqm")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_qomfj")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_tokqm")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_bsfbd")
}],
"loop": true,
"name": &"move_down",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_ulejc")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_1x805")
}],
"loop": true,
"name": &"move_side",
"speed": 4.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_x338k")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_6ynw8")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_x338k")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_2yirn")
}],
"loop": true,
"name": &"move_up",
"speed": 5.0
}]
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_38v5o"]
radius = 13.9973
height = 45.968
[node name="player" type="CharacterBody2D"]
process_mode = 1
y_sort_enabled = true
script = ExtResource("1_qehox")
[node name="rotation_center" type="Marker2D" parent="."]
[node name="ray_cast_2d" type="RayCast2D" parent="rotation_center"]
rotation = 3.14159
target_position = Vector2(-64, 0)
collision_mask = 2
hit_from_inside = true
collide_with_areas = true
collide_with_bodies = false
[node name="animated_sprite_2d" type="AnimatedSprite2D" parent="."]
texture_filter = 1
scale = Vector2(0.733398, 0.733398)
sprite_frames = SubResource("SpriteFrames_2x1cy")
animation = &"move_down"
[node name="collision_shape" type="CollisionShape2D" parent="."]
position = Vector2(0, 31)
rotation = 1.57345
shape = SubResource("CapsuleShape2D_38v5o")
[node name="camera_2d" type="Camera2D" parent="."]
current = true
zoom = Vector2(0.8, 0.8)
process_callback = 0
position_smoothing_enabled = true
position_smoothing_speed = 3.0
drag_horizontal_enabled = true
drag_vertical_enabled = true
drag_left_margin = 0.15
drag_top_margin = 0.15
drag_right_margin = 0.15
drag_bottom_margin = 0.15
editor_draw_drag_margin = true
[node name="audio_listener_2d" type="AudioListener2D" parent="."]
current = true
[node name="dialog_bubble" parent="." instance=ExtResource("3_8f573")]