JeremyGodot/scenes/character.tscn

283 lines
7.6 KiB
Plaintext

[gd_scene load_steps=39 format=3 uid="uid://go4yc8hfo1gq"]
[ext_resource type="Script" path="res://scripts/CharacterBody2D.gd" id="1_x87yo"]
[ext_resource type="Texture2D" uid="uid://c8ogee5u6uxld" path="res://graphics/Player Death/Player Death 64x64.png" id="2_byx7v"]
[ext_resource type="Texture2D" uid="uid://c0iiaebonyhh0" path="res://graphics/Player Idle/Player Idle 48x48.png" id="2_hyqch"]
[ext_resource type="Texture2D" uid="uid://xgoqfqmvorcx" path="res://graphics/Player Jump/player jump 48x48.png" id="3_mp84c"]
[ext_resource type="Texture2D" uid="uid://vn23qn3f0dvc" path="res://graphics/Player Run/player run 48x48.png" id="4_bok64"]
[sub_resource type="AtlasTexture" id="AtlasTexture_i0o8b"]
atlas = ExtResource("2_byx7v")
region = Rect2(0, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_ppvnc"]
atlas = ExtResource("2_byx7v")
region = Rect2(48, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_yo8u7"]
atlas = ExtResource("2_byx7v")
region = Rect2(96, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_eioko"]
atlas = ExtResource("2_byx7v")
region = Rect2(144, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_dmhe1"]
atlas = ExtResource("2_byx7v")
region = Rect2(192, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_joqoj"]
atlas = ExtResource("2_byx7v")
region = Rect2(240, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_bykew"]
atlas = ExtResource("2_byx7v")
region = Rect2(288, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_b7x2x"]
atlas = ExtResource("2_byx7v")
region = Rect2(336, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_7lf4o"]
atlas = ExtResource("2_byx7v")
region = Rect2(384, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_gcy07"]
atlas = ExtResource("2_byx7v")
region = Rect2(432, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_htcu2"]
atlas = ExtResource("2_hyqch")
region = Rect2(0, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_ontj7"]
atlas = ExtResource("2_hyqch")
region = Rect2(48, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_gv7tn"]
atlas = ExtResource("2_hyqch")
region = Rect2(96, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_f4ltu"]
atlas = ExtResource("2_hyqch")
region = Rect2(144, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_m44rj"]
atlas = ExtResource("2_hyqch")
region = Rect2(192, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_mvrul"]
atlas = ExtResource("2_hyqch")
region = Rect2(240, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_cq1wt"]
atlas = ExtResource("2_hyqch")
region = Rect2(288, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_5mc5v"]
atlas = ExtResource("2_hyqch")
region = Rect2(336, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_yclfw"]
atlas = ExtResource("2_hyqch")
region = Rect2(384, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_rgyuc"]
atlas = ExtResource("2_hyqch")
region = Rect2(432, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_pbehb"]
atlas = ExtResource("3_mp84c")
region = Rect2(0, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_o4ud8"]
atlas = ExtResource("3_mp84c")
region = Rect2(48, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_ivggc"]
atlas = ExtResource("3_mp84c")
region = Rect2(96, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_d6cbg"]
atlas = ExtResource("4_bok64")
region = Rect2(0, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_cyg7w"]
atlas = ExtResource("4_bok64")
region = Rect2(48, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_lejph"]
atlas = ExtResource("4_bok64")
region = Rect2(96, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_cu62b"]
atlas = ExtResource("4_bok64")
region = Rect2(144, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_vio7d"]
atlas = ExtResource("4_bok64")
region = Rect2(192, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_t6raw"]
atlas = ExtResource("4_bok64")
region = Rect2(240, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_srqae"]
atlas = ExtResource("4_bok64")
region = Rect2(288, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_dfgfp"]
atlas = ExtResource("4_bok64")
region = Rect2(336, 0, 48, 48)
[sub_resource type="SpriteFrames" id="SpriteFrames_a6t6h"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_i0o8b")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_ppvnc")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_yo8u7")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_eioko")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_dmhe1")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_joqoj")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_bykew")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_b7x2x")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_7lf4o")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_gcy07")
}],
"loop": false,
"name": &"death",
"speed": 12.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_htcu2")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_ontj7")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_gv7tn")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_f4ltu")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_m44rj")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_mvrul")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_cq1wt")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_5mc5v")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_yclfw")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_rgyuc")
}],
"loop": true,
"name": &"idle",
"speed": 15.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_pbehb")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_o4ud8")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_ivggc")
}],
"loop": false,
"name": &"jump",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_d6cbg")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_cyg7w")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_lejph")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_cu62b")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_vio7d")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_t6raw")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_srqae")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_dfgfp")
}],
"loop": true,
"name": &"run",
"speed": 15.0
}]
[sub_resource type="CircleShape2D" id="CircleShape2D_ubfw4"]
radius = 13.0384
[node name="CharacterBody2D" type="CharacterBody2D"]
position = Vector2(-1, 0)
script = ExtResource("1_x87yo")
JUMP_VELOCITY = -500.0
metadata/_edit_group_ = true
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
texture_filter = 1
sprite_frames = SubResource("SpriteFrames_a6t6h")
animation = &"death"
autoplay = "idle"
frame = 9
frame_progress = 1.0
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2(0, 3)
shape = SubResource("CircleShape2D_ubfw4")
[node name="RightRay" type="RayCast2D" parent="."]
position = Vector2(0, 3)
target_position = Vector2(35, 0)
[node name="LeftRay" type="RayCast2D" parent="."]
position = Vector2(0, 3)
target_position = Vector2(-35, 0)
[node name="MarkerRight" type="Node2D" parent="."]
position = Vector2(16, -6)
[node name="MarkerLeft" type="Node2D" parent="."]
position = Vector2(-16, -6)