1bit-game-jam/prefabs/player.tscn

28 lines
1 KiB
Text

[gd_scene load_steps=5 format=3 uid="uid://bhulqhxesd5gc"]
[ext_resource type="Script" path="res://scripts/Player.cs" id="1_1vpun"]
[ext_resource type="SpriteFrames" uid="uid://cfdng3tdv65p6" path="res://sprites/player/player.tres" id="1_8jl58"]
[ext_resource type="SpriteFrames" uid="uid://dqtp1l5ecav4k" path="res://sprites/key_space.tres" id="3_h0r18"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_5hhj3"]
size = Vector2(15, 15)
[node name="Player" type="CharacterBody2D"]
y_sort_enabled = true
collision_layer = 5
collision_mask = 5
script = ExtResource("1_1vpun")
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2(0.5, 7.5)
shape = SubResource("RectangleShape2D_5hhj3")
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
sprite_frames = ExtResource("1_8jl58")
animation = &"down"
[node name="AnimatedSprite2D2" type="AnimatedSprite2D" parent="."]
position = Vector2(0, -19)
scale = Vector2(0.25, 0.25)
sprite_frames = ExtResource("3_h0r18")
frame_progress = 0.535545