186 lines
5 KiB
Plaintext
186 lines
5 KiB
Plaintext
[gd_scene load_steps=7 format=2]
|
|
|
|
[ext_resource path="res://screens/title/supernatural.ogg" type="AudioStream" id=1]
|
|
[ext_resource path="res://theme/ui.tres" type="Theme" id=2]
|
|
[ext_resource path="res://screens/title/title.png" type="Texture" id=3]
|
|
[ext_resource path="res://screens/title/background.jpg" type="Texture" id=4]
|
|
|
|
[sub_resource type="GDScript" id=1]
|
|
script/source = "extends Panel
|
|
|
|
export var interactive = false
|
|
|
|
func _input(event):
|
|
if event is InputEventMouseButton:
|
|
if event.button_index == BUTTON_LEFT and not event.pressed:
|
|
$anims.seek(10)
|
|
|
|
func _on_skirmish_pressed():
|
|
if interactive:
|
|
get_tree().change_scene(\"res://screens/battle/battle.tscn\")
|
|
|
|
func _on_story_pressed():
|
|
if interactive:
|
|
get_tree().change_scene(\"res://screens/intro/intro.tscn\")
|
|
"
|
|
|
|
[sub_resource type="Animation" id=2]
|
|
length = 10.0
|
|
tracks/0/type = "value"
|
|
tracks/0/path = NodePath("title_background:modulate")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/keys = {
|
|
"times": PoolRealArray( 0, 1.5, 5.3 ),
|
|
"transitions": PoolRealArray( 1, 1, 1 ),
|
|
"update": 0,
|
|
"values": [ Color( 1, 1, 1, 0 ), Color( 1, 1, 1, 0 ), Color( 1, 1, 1, 1 ) ]
|
|
}
|
|
tracks/1/type = "value"
|
|
tracks/1/path = NodePath("title:modulate")
|
|
tracks/1/interp = 1
|
|
tracks/1/loop_wrap = true
|
|
tracks/1/imported = false
|
|
tracks/1/enabled = true
|
|
tracks/1/keys = {
|
|
"times": PoolRealArray( 0, 1.5, 5.3, 6.2 ),
|
|
"transitions": PoolRealArray( 1, 1, 1, 1 ),
|
|
"update": 0,
|
|
"values": [ Color( 1, 1, 1, 0 ), Color( 1, 1, 1, 0 ), Color( 1, 1, 1, 0 ), Color( 1, 1, 1, 1 ) ]
|
|
}
|
|
tracks/2/type = "value"
|
|
tracks/2/path = NodePath("menu:modulate")
|
|
tracks/2/interp = 1
|
|
tracks/2/loop_wrap = true
|
|
tracks/2/imported = false
|
|
tracks/2/enabled = true
|
|
tracks/2/keys = {
|
|
"times": PoolRealArray( 0, 1.5, 5.3, 6.2 ),
|
|
"transitions": PoolRealArray( 1, 1, 1, 1 ),
|
|
"update": 0,
|
|
"values": [ Color( 1, 1, 1, 0 ), Color( 1, 1, 1, 0 ), Color( 1, 1, 1, 0 ), Color( 1, 1, 1, 1 ) ]
|
|
}
|
|
tracks/3/type = "value"
|
|
tracks/3/path = NodePath("bgm:playing")
|
|
tracks/3/interp = 1
|
|
tracks/3/loop_wrap = true
|
|
tracks/3/imported = false
|
|
tracks/3/enabled = true
|
|
tracks/3/keys = {
|
|
"times": PoolRealArray( 0, 0.5 ),
|
|
"transitions": PoolRealArray( 1, 1 ),
|
|
"update": 2,
|
|
"values": [ false, true ]
|
|
}
|
|
tracks/4/type = "value"
|
|
tracks/4/path = NodePath("presents:modulate")
|
|
tracks/4/interp = 1
|
|
tracks/4/loop_wrap = true
|
|
tracks/4/imported = false
|
|
tracks/4/enabled = true
|
|
tracks/4/keys = {
|
|
"times": PoolRealArray( 0, 0.3, 0.6, 1.2, 1.5 ),
|
|
"transitions": PoolRealArray( 1, 1, 1, 1, 1 ),
|
|
"update": 0,
|
|
"values": [ Color( 1, 1, 1, 0 ), Color( 1, 1, 1, 0 ), Color( 1, 1, 1, 1 ), Color( 1, 1, 1, 1 ), Color( 1, 1, 1, 0 ) ]
|
|
}
|
|
tracks/5/type = "value"
|
|
tracks/5/path = NodePath("title_background:position")
|
|
tracks/5/interp = 1
|
|
tracks/5/loop_wrap = true
|
|
tracks/5/imported = false
|
|
tracks/5/enabled = true
|
|
tracks/5/keys = {
|
|
"times": PoolRealArray( 0, 1.5, 5.3 ),
|
|
"transitions": PoolRealArray( 1, 1, 1 ),
|
|
"update": 0,
|
|
"values": [ Vector2( 540, 2480 ), Vector2( 540, 2480 ), Vector2( 540, 1600 ) ]
|
|
}
|
|
tracks/6/type = "value"
|
|
tracks/6/path = NodePath(".:interactive")
|
|
tracks/6/interp = 1
|
|
tracks/6/loop_wrap = true
|
|
tracks/6/imported = false
|
|
tracks/6/enabled = true
|
|
tracks/6/keys = {
|
|
"times": PoolRealArray( 0, 5.8 ),
|
|
"transitions": PoolRealArray( 1, 1 ),
|
|
"update": 1,
|
|
"values": [ false, true ]
|
|
}
|
|
|
|
[node name="view" type="Panel"]
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
theme = ExtResource( 2 )
|
|
script = SubResource( 1 )
|
|
__meta__ = {
|
|
"_edit_use_anchors_": false
|
|
}
|
|
|
|
[node name="title" type="Sprite" parent="."]
|
|
modulate = Color( 1, 1, 1, 0.555556 )
|
|
position = Vector2( 540, 392.205 )
|
|
texture = ExtResource( 3 )
|
|
|
|
[node name="title_background" type="Sprite" parent="."]
|
|
position = Vector2( 540, 1600 )
|
|
texture = ExtResource( 4 )
|
|
|
|
[node name="presents" type="Label" parent="."]
|
|
modulate = Color( 1, 1, 1, 0 )
|
|
anchor_left = 0.5
|
|
anchor_top = 0.5
|
|
anchor_right = 0.5
|
|
anchor_bottom = 0.5
|
|
margin_left = -155.0
|
|
margin_top = -76.5
|
|
margin_right = 155.0
|
|
margin_bottom = 76.5
|
|
text = "Michaël Lemaire
|
|
|
|
presents"
|
|
align = 1
|
|
__meta__ = {
|
|
"_edit_use_anchors_": false
|
|
}
|
|
|
|
[node name="menu" type="CenterContainer" parent="."]
|
|
modulate = Color( 1, 1, 1, 0.555556 )
|
|
anchor_right = 1.0
|
|
margin_top = 550.0
|
|
margin_bottom = 1250.0
|
|
__meta__ = {
|
|
"_edit_use_anchors_": false
|
|
}
|
|
|
|
[node name="menu_buttons" type="VBoxContainer" parent="menu"]
|
|
margin_left = 336.0
|
|
margin_top = 221.0
|
|
margin_right = 744.0
|
|
margin_bottom = 479.0
|
|
custom_constants/separation = 80
|
|
alignment = 1
|
|
|
|
[node name="skirmish" type="Button" parent="menu/menu_buttons"]
|
|
margin_right = 408.0
|
|
margin_bottom = 89.0
|
|
text = "Skirmish"
|
|
|
|
[node name="story" type="Button" parent="menu/menu_buttons"]
|
|
margin_top = 169.0
|
|
margin_right = 408.0
|
|
margin_bottom = 258.0
|
|
text = "Story"
|
|
|
|
[node name="bgm" type="AudioStreamPlayer" parent="."]
|
|
stream = ExtResource( 1 )
|
|
|
|
[node name="anims" type="AnimationPlayer" parent="."]
|
|
autoplay = "bg fade in"
|
|
"anims/bg fade in" = SubResource( 2 )
|
|
[connection signal="pressed" from="menu/menu_buttons/skirmish" to="." method="_on_skirmish_pressed"]
|
|
[connection signal="pressed" from="menu/menu_buttons/story" to="." method="_on_story_pressed"]
|