NovemberGodotGame2024/novembergame/scenes/character.tscn

206 lines
5.6 KiB
Plaintext
Raw Normal View History

2024-12-03 01:49:35 +00:00
[gd_scene load_steps=28 format=3 uid="uid://b6vk2imhuhv0j"]
2024-11-26 01:52:14 +00:00
[ext_resource type="Script" path="res://scripts/dudecontroller.gd" id="1_esbkk"]
2024-12-03 01:49:35 +00:00
[ext_resource type="Texture2D" uid="uid://da3mdnk0s8bxc" path="res://assets/graphics/player/idle/Player Idle 48x48.png" id="2_jvkyl"]
[ext_resource type="Texture2D" uid="uid://cfmrxvwojl071" path="res://assets/graphics/player/jump/player jump 48x48.png" id="3_nnfwu"]
[ext_resource type="Texture2D" uid="uid://lk01unajxhx0" path="res://assets/graphics/player/run/player run 48x48.png" id="3_qml56"]
2024-11-26 01:52:14 +00:00
[sub_resource type="CircleShape2D" id="CircleShape2D_drde1"]
radius = 15.0
2024-12-03 01:49:35 +00:00
[sub_resource type="AtlasTexture" id="AtlasTexture_v6vtg"]
atlas = ExtResource("2_jvkyl")
region = Rect2(0, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_r6wh0"]
atlas = ExtResource("2_jvkyl")
region = Rect2(48, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_eu1ry"]
atlas = ExtResource("2_jvkyl")
region = Rect2(96, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_xh6el"]
atlas = ExtResource("2_jvkyl")
region = Rect2(144, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_hmmw7"]
atlas = ExtResource("2_jvkyl")
region = Rect2(192, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_s5e0w"]
atlas = ExtResource("2_jvkyl")
region = Rect2(240, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_ju1ix"]
atlas = ExtResource("2_jvkyl")
region = Rect2(288, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_wrcia"]
atlas = ExtResource("2_jvkyl")
region = Rect2(336, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_feges"]
atlas = ExtResource("2_jvkyl")
region = Rect2(384, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_nngfh"]
atlas = ExtResource("2_jvkyl")
region = Rect2(432, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_enfrq"]
atlas = ExtResource("3_nnfwu")
region = Rect2(0, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_onfup"]
atlas = ExtResource("3_nnfwu")
region = Rect2(48, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_ir0g5"]
atlas = ExtResource("3_nnfwu")
region = Rect2(96, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_ui6j2"]
atlas = ExtResource("3_qml56")
region = Rect2(0, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_kck86"]
atlas = ExtResource("3_qml56")
region = Rect2(48, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_ahfj0"]
atlas = ExtResource("3_qml56")
region = Rect2(96, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_8r5hg"]
atlas = ExtResource("3_qml56")
region = Rect2(144, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_qrp3k"]
atlas = ExtResource("3_qml56")
region = Rect2(192, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_vk50f"]
atlas = ExtResource("3_qml56")
region = Rect2(240, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_st2c2"]
atlas = ExtResource("3_qml56")
region = Rect2(288, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_3pjlk"]
atlas = ExtResource("3_qml56")
region = Rect2(336, 0, 48, 48)
[sub_resource type="SpriteFrames" id="SpriteFrames_xt5u3"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_v6vtg")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_r6wh0")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_eu1ry")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_xh6el")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_hmmw7")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_s5e0w")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_ju1ix")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_wrcia")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_feges")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_nngfh")
}],
"loop": true,
"name": &"idle",
"speed": 12.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_enfrq")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_onfup")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_ir0g5")
}],
"loop": false,
"name": &"jump",
"speed": 8.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_ui6j2")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_kck86")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_ahfj0")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_8r5hg")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_qrp3k")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_vk50f")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_st2c2")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_3pjlk")
}],
"loop": true,
"name": &"run",
"speed": 12.0
}]
2024-11-26 01:52:14 +00:00
[node name="CharacterBody2D" type="CharacterBody2D" groups=["player"]]
script = ExtResource("1_esbkk")
metadata/_edit_group_ = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
rotation = -0.0421956
shape = SubResource("CircleShape2D_drde1")
debug_color = Color(0.459127, 0.454101, 0.981072, 0.42)
[node name="RightRay" type="RayCast2D" parent="."]
2024-12-03 01:49:35 +00:00
target_position = Vector2(17, 0)
2024-11-26 01:52:14 +00:00
[node name="LeftRay" type="RayCast2D" parent="."]
2024-12-03 01:49:35 +00:00
target_position = Vector2(-17, 0)
2024-11-26 01:52:14 +00:00
[node name="RightTarget" type="Node2D" parent="."]
2024-12-03 01:49:35 +00:00
position = Vector2(16, -5)
2024-11-26 01:52:14 +00:00
[node name="LeftTarget" type="Node2D" parent="."]
2024-12-03 01:49:35 +00:00
position = Vector2(-16, -5)
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
texture_filter = 1
position = Vector2(0, -1)
2024-12-03 01:49:35 +00:00
sprite_frames = SubResource("SpriteFrames_xt5u3")
animation = &"idle"
autoplay = "idle"
[node name="Camera2D" type="Camera2D" parent="."]
offset = Vector2(0, -40)