1
0
mirror of https://gitee.com/freeyz/godot-mota.git synced 2024-12-23 01:29:35 +08:00
godot-mota/Main.tscn

452 lines
11 KiB
Plaintext
Raw Normal View History

2020-08-21 10:16:32 +08:00
[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]
atlas = ExtResource( 7 )
region = Rect2( 0, 0, 32, 32 )
[sub_resource type="AtlasTexture" id=2]
atlas = ExtResource( 7 )
region = Rect2( 0, 96, 32, 32 )
[sub_resource type="AtlasTexture" id=3]
atlas = ExtResource( 7 )
region = Rect2( 0, 128, 32, 32 )
[sub_resource type="AtlasTexture" id=4]
atlas = ExtResource( 7 )
region = Rect2( 0, 160, 32, 32 )
[sub_resource type="AtlasTexture" id=5]
atlas = ExtResource( 7 )
region = Rect2( 0, 192, 32, 32 )
[sub_resource type="StreamTexture" id=6]
load_path = "res://.import/icons_old.png-15488db7964fa7b4e69cdc7d96c7bd7f.stex"
[sub_resource type="AtlasTexture" id=7]
atlas = SubResource( 6 )
region = Rect2( 0, 320, 32, 32 )
[sub_resource type="AtlasTexture" id=8]
atlas = SubResource( 6 )
region = Rect2( 0, 352, 32, 32 )
[sub_resource type="AtlasTexture" id=9]
atlas = SubResource( 6 )
region = Rect2( 0, 384, 32, 32 )
[sub_resource type="AtlasTexture" id=10]
atlas = SubResource( 6 )
region = Rect2( 0, 544, 32, 32 )
[sub_resource type="AtlasTexture" id=11]
atlas = SubResource( 6 )
region = Rect2( 0, 448, 32, 32 )
[sub_resource type="AtlasTexture" id=12]
atlas = SubResource( 6 )
region = Rect2( 0, 480, 32, 32 )
[sub_resource type="AtlasTexture" id=13]
atlas = SubResource( 6 )
region = Rect2( 0, 512, 32, 32 )
[sub_resource type="AtlasTexture" id=14]
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"]
anchor_left = 0.5
anchor_right = 0.5
margin_left = -207.0
margin_right = 207.0
2020-08-21 10:16:32 +08:00
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
2020-08-22 14:49:34 +08:00
margin_top = 14.0
2020-08-21 10:16:32 +08:00
margin_right = 398.0
2020-08-22 14:49:34 +08:00
margin_bottom = 46.0
2020-08-21 10:16:32 +08:00
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
2020-08-22 14:49:34 +08:00
margin_top = 54.0
2020-08-21 10:16:32 +08:00
margin_right = 268.0
2020-08-22 14:49:34 +08:00
margin_bottom = 86.0
2020-08-21 10:16:32 +08:00
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
2020-08-22 14:49:34 +08:00
margin_top = 54.0
2020-08-21 10:16:32 +08:00
margin_right = 360.0
2020-08-22 14:49:34 +08:00
margin_bottom = 86.0
2020-08-21 10:16:32 +08:00
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"]
anchor_left = 0.5
anchor_top = 1.0
anchor_right = 0.5
anchor_bottom = 1.0
margin_left = -207.0
margin_top = -32.0
margin_right = 207.0
2020-08-21 10:16:32 +08:00
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="BookButton" type="TextureButton" parent="HUD/BottomBackground/VBoxContainer"]
2020-08-21 10:16:32 +08:00
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"]
visible = false
margin_right = 40.0
2020-08-21 10:16:32 +08:00
margin_bottom = 32.0
size_flags_horizontal = 3
texture_normal = SubResource( 8 )
[node name="TextureButton3" type="TextureButton" parent="HUD/BottomBackground/VBoxContainer"]
visible = false
margin_right = 40.0
2020-08-21 10:16:32 +08:00
margin_bottom = 32.0
size_flags_horizontal = 3
texture_normal = SubResource( 9 )
[node name="TextureButton4" type="TextureButton" parent="HUD/BottomBackground/VBoxContainer"]
visible = false
margin_right = 40.0
2020-08-21 10:16:32 +08:00
margin_bottom = 32.0
size_flags_horizontal = 3
texture_normal = SubResource( 10 )
[node name="TextureButton5" type="TextureButton" parent="HUD/BottomBackground/VBoxContainer"]
visible = false
margin_right = 40.0
2020-08-21 10:16:32 +08:00
margin_bottom = 32.0
size_flags_horizontal = 3
texture_normal = SubResource( 11 )
[node name="SaveButton" type="TextureButton" parent="HUD/BottomBackground/VBoxContainer"]
margin_left = 44.0
margin_right = 84.0
2020-08-21 10:16:32 +08:00
margin_bottom = 32.0
size_flags_horizontal = 3
texture_normal = SubResource( 12 )
[node name="LoadButton" type="TextureButton" parent="HUD/BottomBackground/VBoxContainer"]
margin_left = 88.0
margin_right = 128.0
2020-08-21 10:16:32 +08:00
margin_bottom = 32.0
size_flags_horizontal = 3
texture_normal = SubResource( 13 )
[node name="TextureButton8" type="TextureButton" parent="HUD/BottomBackground/VBoxContainer"]
visible = false
margin_left = 88.0
margin_right = 128.0
2020-08-21 10:16:32 +08:00
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="BookDialog" type="PopupDialog" parent="HUD"]
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
margin_left = -208.0
margin_top = -176.0
margin_right = 208.0
margin_bottom = 240.0
__meta__ = {
"_edit_use_anchors_": false
}
[node name="ScrollContainer" type="ScrollContainer" parent="HUD/BookDialog"]
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
margin_left = -208.0
margin_top = -208.0
margin_right = 206.0
margin_bottom = 208.0
__meta__ = {
"_edit_use_anchors_": false
}
[node name="VBoxContainer" type="VBoxContainer" parent="HUD/BookDialog/ScrollContainer"]
[node name="CloseBook" type="Label" parent="HUD/BookDialog"]
anchor_left = 1.0
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
margin_left = -77.9
margin_top = -32.0
margin_right = -13.9
margin_bottom = -10.0
custom_fonts/font = ExtResource( 8 )
text = "返回游戏"
valign = 1
__meta__ = {
"_edit_use_anchors_": false
}
2020-08-21 10:16:32 +08:00
[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