132 lines
3.1 KiB
Plaintext
132 lines
3.1 KiB
Plaintext
[gd_scene load_steps=16 format=2]
|
|
|
|
[ext_resource path="res://assets/img/spaced-dungeon-tileset.png" type="Texture" id=1]
|
|
[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]
|
|
flags = 4
|
|
atlas = ExtResource( 1 )
|
|
region = Rect2( 0, 468, 18, 36 )
|
|
|
|
[sub_resource type="AtlasTexture" id=2]
|
|
flags = 4
|
|
atlas = ExtResource( 1 )
|
|
region = Rect2( 18, 468, 18, 36 )
|
|
|
|
[sub_resource type="AtlasTexture" id=3]
|
|
flags = 4
|
|
atlas = ExtResource( 1 )
|
|
region = Rect2( 36, 468, 18, 36 )
|
|
|
|
[sub_resource type="AtlasTexture" id=4]
|
|
flags = 4
|
|
atlas = ExtResource( 1 )
|
|
region = Rect2( 54, 468, 18, 36 )
|
|
|
|
[sub_resource type="AtlasTexture" id=9]
|
|
flags = 4
|
|
atlas = ExtResource( 1 )
|
|
region = Rect2( 144, 468, 18, 36 )
|
|
|
|
[sub_resource type="AtlasTexture" id=5]
|
|
flags = 4
|
|
atlas = ExtResource( 1 )
|
|
region = Rect2( 72, 468, 18, 36 )
|
|
|
|
[sub_resource type="AtlasTexture" id=6]
|
|
flags = 4
|
|
atlas = ExtResource( 1 )
|
|
region = Rect2( 90, 468, 18, 36 )
|
|
|
|
[sub_resource type="AtlasTexture" id=7]
|
|
flags = 4
|
|
atlas = ExtResource( 1 )
|
|
region = Rect2( 108, 468, 18, 36 )
|
|
|
|
[sub_resource type="AtlasTexture" id=8]
|
|
flags = 4
|
|
atlas = ExtResource( 1 )
|
|
region = Rect2( 126, 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( 9 ) ],
|
|
"loop": true,
|
|
"name": "hurt",
|
|
"speed": 5.0
|
|
}, {
|
|
"frames": [ SubResource( 5 ), SubResource( 6 ), SubResource( 7 ), SubResource( 8 ) ],
|
|
"loop": true,
|
|
"name": "run",
|
|
"speed": 12.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="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="player_name" type="Label" parent="."]
|
|
margin_left = -21.0
|
|
margin_right = 21.0
|
|
margin_bottom = 25.0
|
|
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 )
|