godot-mota/Main.tscn

414 lines
10 KiB
Plaintext

[gd_scene load_steps=23 format=2]
[ext_resource path="res://src/levels/Level1.tscn" type="PackedScene" id=1]
[ext_resource path="res://assets/sounds/bgm.ogg" type="AudioStream" id=5]
[ext_resource path="res://assets/images/ground.png" type="Texture" id=6]
[ext_resource path="res://assets/images/icons_old.png" type="Texture" id=7]
[ext_resource path="res://assets/fonts/Droid Sans Fallback.tres" type="DynamicFont" id=8]
[ext_resource path="res://src/level/LevelsManager.gd" type="Script" id=10]
[ext_resource path="res://src/hud/HUD.gd" type="Script" id=11]
[ext_resource path="res://Main.gd" type="Script" id=12]
[sub_resource type="AtlasTexture" id=1]
flags = 4
atlas = ExtResource( 7 )
region = Rect2( 0, 0, 32, 32 )
[sub_resource type="AtlasTexture" id=2]
flags = 4
atlas = ExtResource( 7 )
region = Rect2( 0, 96, 32, 32 )
[sub_resource type="AtlasTexture" id=3]
flags = 4
atlas = ExtResource( 7 )
region = Rect2( 0, 128, 32, 32 )
[sub_resource type="AtlasTexture" id=4]
flags = 4
atlas = ExtResource( 7 )
region = Rect2( 0, 160, 32, 32 )
[sub_resource type="AtlasTexture" id=5]
flags = 4
atlas = ExtResource( 7 )
region = Rect2( 0, 192, 32, 32 )
[sub_resource type="StreamTexture" id=6]
flags = 4
load_path = "res://.import/icons_old.png-15488db7964fa7b4e69cdc7d96c7bd7f.stex"
[sub_resource type="AtlasTexture" id=7]
flags = 4
atlas = SubResource( 6 )
region = Rect2( 0, 320, 32, 32 )
[sub_resource type="AtlasTexture" id=8]
flags = 4
atlas = SubResource( 6 )
region = Rect2( 0, 352, 32, 32 )
[sub_resource type="AtlasTexture" id=9]
flags = 4
atlas = SubResource( 6 )
region = Rect2( 0, 384, 32, 32 )
[sub_resource type="AtlasTexture" id=10]
flags = 4
atlas = SubResource( 6 )
region = Rect2( 0, 544, 32, 32 )
[sub_resource type="AtlasTexture" id=11]
flags = 4
atlas = SubResource( 6 )
region = Rect2( 0, 448, 32, 32 )
[sub_resource type="AtlasTexture" id=12]
flags = 4
atlas = SubResource( 6 )
region = Rect2( 0, 480, 32, 32 )
[sub_resource type="AtlasTexture" id=13]
flags = 4
atlas = SubResource( 6 )
region = Rect2( 0, 512, 32, 32 )
[sub_resource type="AtlasTexture" id=14]
flags = 4
atlas = SubResource( 6 )
region = Rect2( 0, 544, 32, 32 )
[node name="Main" type="Node2D"]
script = ExtResource( 12 )
[node name="HUD" type="CanvasLayer" parent="."]
script = ExtResource( 11 )
[node name="HeaderBackground" type="TextureRect" parent="HUD"]
margin_right = 414.0
margin_bottom = 96.0
texture = ExtResource( 6 )
stretch_mode = 2
__meta__ = {
"_edit_use_anchors_": false
}
[node name="GridContainer" type="GridContainer" parent="HUD/HeaderBackground"]
margin_left = 16.0
margin_top = 1.0
margin_right = 398.0
margin_bottom = 33.0
columns = 6
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Location" type="TextureRect" parent="HUD/HeaderBackground/GridContainer"]
margin_right = 32.0
margin_bottom = 32.0
texture = SubResource( 1 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="LevelLabel" type="Label" parent="HUD/HeaderBackground/GridContainer"]
margin_left = 36.0
margin_top = 5.0
margin_right = 124.0
margin_bottom = 27.0
size_flags_horizontal = 3
custom_fonts/font = ExtResource( 8 )
text = "1层"
valign = 1
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Location2" type="TextureRect" parent="HUD/HeaderBackground/GridContainer"]
margin_left = 128.0
margin_right = 160.0
margin_bottom = 32.0
texture = SubResource( 2 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="HpLabel" type="Label" parent="HUD/HeaderBackground/GridContainer"]
margin_left = 164.0
margin_top = 5.0
margin_right = 252.0
margin_bottom = 27.0
size_flags_horizontal = 3
custom_fonts/font = ExtResource( 8 )
text = "1000"
valign = 1
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Location3" type="TextureRect" parent="HUD/HeaderBackground/GridContainer"]
margin_left = 256.0
margin_right = 288.0
margin_bottom = 32.0
texture = SubResource( 3 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="AtkLabel" type="Label" parent="HUD/HeaderBackground/GridContainer"]
margin_left = 292.0
margin_top = 5.0
margin_right = 380.0
margin_bottom = 27.0
size_flags_horizontal = 3
custom_fonts/font = ExtResource( 8 )
text = "10"
valign = 1
__meta__ = {
"_edit_use_anchors_": false
}
[node name="GridContainer2" type="GridContainer" parent="HUD/HeaderBackground"]
margin_left = 16.0
margin_top = 33.0
margin_right = 268.0
margin_bottom = 65.0
columns = 4
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Location" type="TextureRect" parent="HUD/HeaderBackground/GridContainer2"]
margin_right = 32.0
margin_bottom = 32.0
texture = SubResource( 4 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="DefLabel" type="Label" parent="HUD/HeaderBackground/GridContainer2"]
margin_left = 36.0
margin_top = 5.0
margin_right = 124.0
margin_bottom = 27.0
size_flags_horizontal = 3
custom_fonts/font = ExtResource( 8 )
text = "10"
valign = 1
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Location2" type="TextureRect" parent="HUD/HeaderBackground/GridContainer2"]
margin_left = 128.0
margin_right = 160.0
margin_bottom = 32.0
texture = SubResource( 5 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="ExpLabel" type="Label" parent="HUD/HeaderBackground/GridContainer2"]
margin_left = 164.0
margin_top = 5.0
margin_right = 252.0
margin_bottom = 27.0
size_flags_horizontal = 3
custom_fonts/font = ExtResource( 8 )
text = "0"
valign = 1
__meta__ = {
"_edit_use_anchors_": false
}
[node name="GridContainer3" type="GridContainer" parent="HUD/HeaderBackground"]
margin_left = 268.0
margin_top = 33.0
margin_right = 360.0
margin_bottom = 65.0
columns = 3
__meta__ = {
"_edit_use_anchors_": false
}
[node name="YellowKeyCount" type="Label" parent="HUD/HeaderBackground/GridContainer3"]
margin_right = 28.0
margin_bottom = 32.0
size_flags_horizontal = 3
size_flags_vertical = 7
custom_fonts/font = ExtResource( 8 )
text = "00"
align = 1
valign = 1
__meta__ = {
"_edit_use_anchors_": false
}
[node name="BlueKeyCount" type="Label" parent="HUD/HeaderBackground/GridContainer3"]
margin_left = 32.0
margin_right = 60.0
margin_bottom = 32.0
size_flags_horizontal = 3
size_flags_vertical = 7
custom_fonts/font = ExtResource( 8 )
text = "00"
align = 1
valign = 1
__meta__ = {
"_edit_use_anchors_": false
}
[node name="RedKeyCount" type="Label" parent="HUD/HeaderBackground/GridContainer3"]
margin_left = 64.0
margin_right = 92.0
margin_bottom = 32.0
size_flags_horizontal = 3
size_flags_vertical = 7
custom_fonts/font = ExtResource( 8 )
text = "00"
align = 1
valign = 1
__meta__ = {
"_edit_use_anchors_": false
}
[node name="BottomBackground" type="TextureRect" parent="HUD"]
margin_top = 512.0
margin_right = 414.0
margin_bottom = 544.0
texture = ExtResource( 6 )
stretch_mode = 2
__meta__ = {
"_edit_use_anchors_": false
}
[node name="VBoxContainer" type="GridContainer" parent="HUD/BottomBackground"]
anchor_left = 0.231
anchor_top = 0.238
anchor_right = 0.329
anchor_bottom = 0.238
margin_left = -87.634
margin_top = -4.616
margin_right = 221.598
margin_bottom = 27.384
rect_scale = Vector2( 0.8, 0.8 )
columns = 8
__meta__ = {
"_edit_use_anchors_": false
}
[node name="TextureButton" type="TextureButton" parent="HUD/BottomBackground/VBoxContainer"]
margin_right = 40.0
margin_bottom = 32.0
size_flags_horizontal = 3
texture_normal = SubResource( 7 )
[node name="TextureButton2" type="TextureButton" parent="HUD/BottomBackground/VBoxContainer"]
margin_left = 44.0
margin_right = 84.0
margin_bottom = 32.0
size_flags_horizontal = 3
texture_normal = SubResource( 8 )
[node name="TextureButton3" type="TextureButton" parent="HUD/BottomBackground/VBoxContainer"]
margin_left = 88.0
margin_right = 128.0
margin_bottom = 32.0
size_flags_horizontal = 3
texture_normal = SubResource( 9 )
[node name="TextureButton4" type="TextureButton" parent="HUD/BottomBackground/VBoxContainer"]
margin_left = 132.0
margin_right = 172.0
margin_bottom = 32.0
size_flags_horizontal = 3
texture_normal = SubResource( 10 )
[node name="TextureButton5" type="TextureButton" parent="HUD/BottomBackground/VBoxContainer"]
margin_left = 176.0
margin_right = 216.0
margin_bottom = 32.0
size_flags_horizontal = 3
texture_normal = SubResource( 11 )
[node name="SaveButton" type="TextureButton" parent="HUD/BottomBackground/VBoxContainer"]
margin_left = 220.0
margin_right = 260.0
margin_bottom = 32.0
size_flags_horizontal = 3
texture_normal = SubResource( 12 )
[node name="LoadButton" type="TextureButton" parent="HUD/BottomBackground/VBoxContainer"]
margin_left = 264.0
margin_right = 304.0
margin_bottom = 32.0
size_flags_horizontal = 3
texture_normal = SubResource( 13 )
[node name="TextureButton8" type="TextureButton" parent="HUD/BottomBackground/VBoxContainer"]
margin_left = 308.0
margin_right = 348.0
margin_bottom = 32.0
size_flags_horizontal = 3
texture_normal = SubResource( 14 )
[node name="Label" type="Label" parent="HUD/BottomBackground"]
margin_left = 288.0
margin_right = 414.0
margin_bottom = 32.0
size_flags_horizontal = 3
custom_fonts/font = ExtResource( 8 )
custom_colors/font_color = Color( 1, 0.0313726, 0.0313726, 1 )
custom_colors/font_outline_modulate = Color( 0, 0, 0, 1 )
text = "Normal"
align = 1
valign = 1
__meta__ = {
"_edit_use_anchors_": false
}
[node name="MessageDialog" type="PopupDialog" parent="HUD"]
margin_top = 96.0
margin_right = 414.0
margin_bottom = 224.0
__meta__ = {
"_edit_group_": true,
"_edit_use_anchors_": false
}
[node name="ContentLabel" type="Label" parent="HUD/MessageDialog"]
anchor_left = 0.022
anchor_top = 0.02
anchor_right = 0.044
anchor_bottom = 0.02
margin_left = -1.108
margin_top = 5.44
margin_right = 386.784
margin_bottom = 93.44
custom_fonts/font = ExtResource( 8 )
text = "测试"
autowrap = true
__meta__ = {
"_edit_use_anchors_": false
}
[node name="ClickLabel" type="Label" parent="HUD/MessageDialog"]
margin_left = 328.0
margin_top = 96.0
margin_right = 404.0
margin_bottom = 118.0
custom_fonts/font = ExtResource( 8 )
text = "点击继续..."
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Level" type="Node2D" parent="."]
script = ExtResource( 10 )
[node name="Level1" parent="Level" instance=ExtResource( 1 )]
[node name="BgmSound" type="AudioStreamPlayer2D" parent="."]
stream = ExtResource( 5 )
volume_db = -10.0