Strayvoid/scenes/player.tscn
2025-03-24 19:21:17 +01:00

91 lines
2.4 KiB
Plaintext
Executable File

[gd_scene load_steps=12 format=3 uid="uid://bka2dar6fugaw"]
[ext_resource type="Texture2D" uid="uid://bwm7ukd2mf4pw" path="res://assets/sprites/character.png" id="1_04s5f"]
[ext_resource type="Script" path="res://scripts/player.gd" id="1_8og1l"]
[sub_resource type="AtlasTexture" id="AtlasTexture_c7tji"]
atlas = ExtResource("1_04s5f")
region = Rect2(12, 4, 20, 14)
[sub_resource type="AtlasTexture" id="AtlasTexture_crmtc"]
atlas = ExtResource("1_04s5f")
region = Rect2(52, 4, 20, 14)
[sub_resource type="AtlasTexture" id="AtlasTexture_imd7e"]
atlas = ExtResource("1_04s5f")
region = Rect2(32, 60, 20, 14)
[sub_resource type="AtlasTexture" id="AtlasTexture_4kk6i"]
atlas = ExtResource("1_04s5f")
region = Rect2(12, 32, 20, 14)
[sub_resource type="AtlasTexture" id="AtlasTexture_j0txb"]
atlas = ExtResource("1_04s5f")
region = Rect2(52, 32, 20, 14)
[sub_resource type="SpriteFrames" id="SpriteFrames_nsy4c"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_c7tji")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_crmtc")
}],
"loop": true,
"name": &"idle",
"speed": 1.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_imd7e")
}],
"loop": true,
"name": &"jump",
"speed": 1.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_4kk6i")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_j0txb")
}],
"loop": true,
"name": &"run",
"speed": 4.0
}]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_5qhjd"]
size = Vector2(15, 11)
[sub_resource type="Gradient" id="Gradient_a33b2"]
offsets = PackedFloat32Array(0.113744, 0.379147, 0.687204)
colors = PackedColorArray(1, 1, 1, 1, 0.31802, 0.31802, 0.31802, 1, 0, 0, 0, 1)
[sub_resource type="GradientTexture2D" id="GradientTexture2D_vsfg3"]
gradient = SubResource("Gradient_a33b2")
fill = 1
fill_from = Vector2(0.5, 0.5)
[node name="Player" type="CharacterBody2D"]
z_index = 9
collision_layer = 2
script = ExtResource("1_8og1l")
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
position = Vector2(2, -6)
scale = Vector2(0.8, 0.8125)
sprite_frames = SubResource("SpriteFrames_nsy4c")
animation = &"run"
autoplay = "idle"
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2(1.5, -5.5)
shape = SubResource("RectangleShape2D_5qhjd")
[node name="PointLight2D" type="PointLight2D" parent="."]
color = Color(0.564706, 0.337255, 0.627451, 1)
energy = 1.1
texture = SubResource("GradientTexture2D_vsfg3")