Система перехода между сценами. И главное меню. Типа.
This commit is contained in:
parent
8e4304ebc6
commit
f45ebbceb6
7 changed files with 172 additions and 1 deletions
47
scenes/Startup.tscn
Normal file
47
scenes/Startup.tscn
Normal file
|
@ -0,0 +1,47 @@
|
|||
[gd_scene load_steps=6 format=3 uid="uid://b6nskaaaroy2j"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/Startup.cs" id="1_1ndxq"]
|
||||
[ext_resource type="Texture2D" uid="uid://82rj0mblksli" path="res://resources/sprites/ui/menu.png" id="1_nye7c"]
|
||||
[ext_resource type="FontFile" uid="uid://dwn20pw40jpxm" path="res://fonts/ZxSpectrum7-nROZ0.ttf" id="2_et3ev"]
|
||||
[ext_resource type="AudioStream" uid="uid://be35iuapayv0u" path="res://resources/music/Day1.wav" id="3_m8gkt"]
|
||||
|
||||
[sub_resource type="AudioStreamPlaylist" id="AudioStreamPlaylist_5mfcs"]
|
||||
stream_count = 1
|
||||
stream_0 = ExtResource("3_m8gkt")
|
||||
|
||||
[node name="Startup" type="Node2D"]
|
||||
script = ExtResource("1_1ndxq")
|
||||
|
||||
[node name="Camera2D" type="Camera2D" parent="."]
|
||||
zoom = Vector2(2, 2)
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||||
texture = ExtResource("1_nye7c")
|
||||
|
||||
[node name="Label" type="Label" parent="."]
|
||||
anchors_preset = 8
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
offset_left = -128.0
|
||||
offset_top = 97.0
|
||||
offset_right = 128.0
|
||||
offset_bottom = 120.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
theme_override_fonts/font = ExtResource("2_et3ev")
|
||||
theme_override_font_sizes/font_size = 20
|
||||
text = "Press E to start"
|
||||
|
||||
[node name="ColorRect" type="ColorRect" parent="."]
|
||||
offset_left = -160.0
|
||||
offset_top = -120.0
|
||||
offset_right = 160.0
|
||||
offset_bottom = 120.0
|
||||
color = Color(0, 0, 0, 0)
|
||||
|
||||
[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."]
|
||||
stream = SubResource("AudioStreamPlaylist_5mfcs")
|
||||
autoplay = true
|
||||
bus = &"Music"
|
Loading…
Add table
Add a link
Reference in a new issue