-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMainMenu.tscn
91 lines (81 loc) · 2.97 KB
/
MainMenu.tscn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
[gd_scene load_steps=12 format=2]
[ext_resource path="res://default_font.tres" type="DynamicFont" id=1]
[ext_resource path="res://assets/wizard/wizzard_m_run_anim_f2.png" type="Texture" id=2]
[ext_resource path="res://assets/wizard/wizzard_m_run_anim_f3.png" type="Texture" id=3]
[ext_resource path="res://assets/wizard/wizzard_m_run_anim_f1.png" type="Texture" id=4]
[ext_resource path="res://assets/wizard/wizzard_m_idle_anim_f0.png" type="Texture" id=5]
[ext_resource path="res://assets/wizard/wizzard_m_idle_anim_f1.png" type="Texture" id=6]
[ext_resource path="res://assets/wizard/wizzard_m_idle_anim_f3.png" type="Texture" id=7]
[ext_resource path="res://assets/wizard/wizzard_m_idle_anim_f2.png" type="Texture" id=8]
[ext_resource path="res://assets/wizard/wizzard_m_run_anim_f0.png" type="Texture" id=9]
[ext_resource path="res://MainMenu.gd" type="Script" id=10]
[sub_resource type="Animation" id=1]
resource_name = "idle"
length = 1.6
loop = true
step = 0.2
tracks/0/type = "value"
tracks/0/path = NodePath("CenterContainer/VBoxContainer/Sprite:texture")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0, 0.2, 0.4, 0.6, 0.8, 1, 1.2, 1.4 ),
"transitions": PoolRealArray( 1, 1, 1, 1, 1, 1, 1, 1 ),
"update": 1,
"values": [ ExtResource( 5 ), ExtResource( 6 ), ExtResource( 8 ), ExtResource( 7 ), ExtResource( 9 ), ExtResource( 4 ), ExtResource( 2 ), ExtResource( 3 ) ]
}
[node name="MainMenu" type="Control"]
anchor_right = 1.0
anchor_bottom = 1.0
script = ExtResource( 10 )
__meta__ = {
"_edit_use_anchors_": false
}
target_stage = "res://src/World/World.tscn"
[node name="CenterContainer" type="CenterContainer" parent="."]
anchor_right = 1.0
anchor_bottom = 1.0
__meta__ = {
"_edit_use_anchors_": false
}
[node name="VBoxContainer" type="VBoxContainer" parent="CenterContainer"]
margin_left = 62.0
margin_top = 17.0
margin_right = 138.0
margin_bottom = 102.0
size_flags_horizontal = 0
[node name="Label" type="Label" parent="CenterContainer/VBoxContainer"]
margin_right = 76.0
margin_bottom = 13.0
custom_fonts/font = ExtResource( 1 )
text = "Some
Wizard Game"
align = 1
[node name="Button" type="Button" parent="CenterContainer/VBoxContainer"]
margin_top = 17.0
margin_right = 76.0
margin_bottom = 28.0
custom_fonts/font = ExtResource( 1 )
text = "New Game"
[node name="Sprite" type="Sprite" parent="CenterContainer/VBoxContainer"]
position = Vector2( 38, -18 )
texture = ExtResource( 6 )
[node name="Label2" type="Label" parent="CenterContainer/VBoxContainer"]
margin_top = 32.0
margin_right = 76.0
margin_bottom = 85.0
custom_fonts/font = ExtResource( 1 )
text = "R - drink hp potion
T - drink mp potion
Z - make hp potion
X - make mp potion
w,s,a,d - move
arrows - fire spell
"
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
autoplay = "idle"
playback_speed = 2.0
anims/idle = SubResource( 1 )
[connection signal="pressed" from="CenterContainer/VBoxContainer/Button" to="." method="_on_Button_pressed"]