[gd_scene load_steps=18 format=2] [ext_resource path="res://assets/img/spaced-dungeon-tileset.png" type="Texture" id=1] [ext_resource path="res://assets/fonts/iosevkalyte/iosevkalyte-regular.ttf" type="DynamicFontData" id=2] [ext_resource path="res://objects/bar.tscn" type="PackedScene" id=3] [ext_resource path="res://scripts/objects/player.gd" type="Script" id=10] [sub_resource type="AtlasTexture" id=1] atlas = ExtResource( 1 ) region = Rect2( 0, 468, 18, 36 ) [sub_resource type="AtlasTexture" id=2] atlas = ExtResource( 1 ) region = Rect2( 18, 468, 18, 36 ) [sub_resource type="AtlasTexture" id=3] atlas = ExtResource( 1 ) region = Rect2( 36, 468, 18, 36 ) [sub_resource type="AtlasTexture" id=4] atlas = ExtResource( 1 ) region = Rect2( 54, 468, 18, 36 ) [sub_resource type="AtlasTexture" id=5] atlas = ExtResource( 1 ) region = Rect2( 72, 468, 18, 36 ) [sub_resource type="AtlasTexture" id=6] atlas = ExtResource( 1 ) region = Rect2( 90, 468, 18, 36 ) [sub_resource type="AtlasTexture" id=7] atlas = ExtResource( 1 ) region = Rect2( 108, 468, 18, 36 ) [sub_resource type="AtlasTexture" id=8] atlas = ExtResource( 1 ) region = Rect2( 126, 468, 18, 36 ) [sub_resource type="AtlasTexture" id=9] atlas = ExtResource( 1 ) region = Rect2( 144, 468, 18, 36 ) [sub_resource type="SpriteFrames" id=10] animations = [ { "frames": [ SubResource( 1 ), SubResource( 2 ), SubResource( 3 ), SubResource( 4 ) ], "loop": true, "name": "idle", "speed": 6.0 }, { "frames": [ SubResource( 5 ), SubResource( 6 ), SubResource( 7 ), SubResource( 8 ) ], "loop": true, "name": "run", "speed": 12.0 }, { "frames": [ SubResource( 9 ) ], "loop": true, "name": "hurt", "speed": 5.0 } ] [sub_resource type="ConvexPolygonShape2D" id=11] points = PoolVector2Array( -2, 4, 2, 4, 6, 1, 6, -1, 1, -4, -1, -4, -6, -1, -6, 1 ) [sub_resource type="DynamicFont" id=13] size = 64 font_data = ExtResource( 2 ) [sub_resource type="StyleBoxFlat" id=12] bg_color = Color( 0, 0.25098, 1, 1 ) [node name="player" type="KinematicBody2D" groups=["destructable"]] script = ExtResource( 10 ) [node name="sprite" type="AnimatedSprite" parent="."] modulate = Color( 0.384314, 0.796078, 1, 1 ) position = Vector2( 0, -18 ) frames = SubResource( 10 ) animation = "idle" frame = 1 playing = true [node name="collider" type="CollisionShape2D" parent="."] position = Vector2( 0, -6.5 ) scale = Vector2( 1, 1.6 ) shape = SubResource( 11 ) [node name="ui" type="CanvasLayer" parent="."] [node name="c" type="CenterContainer" parent="ui"] margin_left = -50.0 margin_top = 8.0 margin_right = 350.0 margin_bottom = 89.0 grow_horizontal = 2 grow_vertical = 2 rect_scale = Vector2( 0.25, 0.25 ) __meta__ = { "_edit_use_anchors_": false } [node name="player_name" type="Label" parent="ui/c"] visible = false margin_left = 24.0 margin_right = 376.0 margin_bottom = 81.0 size_flags_horizontal = 3 size_flags_vertical = 7 custom_fonts/font = SubResource( 13 ) text = "player_name" align = 1 __meta__ = { "_edit_use_anchors_": false } [node name="bars" type="VBoxContainer" parent="."] margin_left = -18.0 margin_top = -26.0 margin_right = 18.0 margin_bottom = -20.0 size_flags_horizontal = 3 size_flags_vertical = 3 custom_constants/separation = 0 alignment = 1 __meta__ = { "_edit_use_anchors_": false } [node name="health_bar" parent="bars" instance=ExtResource( 3 )] anchor_right = 0.0 anchor_bottom = 0.0 margin_right = 36.0 margin_bottom = 3.0 size_flags_horizontal = 3 size_flags_vertical = 3 [node name="mana_bar" parent="bars" instance=ExtResource( 3 )] anchor_right = 0.0 anchor_bottom = 0.0 margin_top = 3.0 margin_right = 36.0 margin_bottom = 6.0 size_flags_horizontal = 3 size_flags_vertical = 3 custom_styles/fg = SubResource( 12 )