New Icon; Touch Controls; Menu with Help; Added Music
This commit is contained in:
parent
9e3349eec3
commit
e87f8c3756
71 changed files with 1084 additions and 278 deletions
25
scenes/menu/background.tscn
Normal file
25
scenes/menu/background.tscn
Normal file
File diff suppressed because one or more lines are too long
|
|
@ -1,8 +1,9 @@
|
|||
[gd_scene load_steps=9 format=3 uid="uid://jga6awfuwsyp"]
|
||||
[gd_scene load_steps=10 format=3 uid="uid://jga6awfuwsyp"]
|
||||
|
||||
[ext_resource type="Theme" uid="uid://cotw1alu4b2ad" path="res://Theme/MainTheme.tres" id="1_iscr2"]
|
||||
[ext_resource type="Texture2D" uid="uid://drjv0kpcfubr0" path="res://Assets/Icons/Dollar.png" id="2_54fgt"]
|
||||
[ext_resource type="Script" path="res://scenes/menu/endScreen/end_screen.gd" id="2_wokl6"]
|
||||
[ext_resource type="PackedScene" uid="uid://iq8pxx1suuqt" path="res://scenes/menu/background.tscn" id="3_33v35"]
|
||||
[ext_resource type="Texture2D" uid="uid://b27g8eulkxvyr" path="res://Assets/Icons/Health.png" id="3_n82yp"]
|
||||
|
||||
[sub_resource type="LabelSettings" id="LabelSettings_3uh6l"]
|
||||
|
|
@ -39,6 +40,8 @@ grow_vertical = 2
|
|||
theme = ExtResource("1_iscr2")
|
||||
script = ExtResource("2_wokl6")
|
||||
|
||||
[node name="Background" parent="." instance=ExtResource("3_33v35")]
|
||||
|
||||
[node name="CenterContainer" type="CenterContainer" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
|
|
|
|||
11
scenes/menu/help/Button.tres
Normal file
11
scenes/menu/help/Button.tres
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
[gd_resource type="StyleBoxTexture" load_steps=2 format=3 uid="uid://drm7nwpd677bf"]
|
||||
|
||||
[sub_resource type="CompressedTexture2D" id="CompressedTexture2D_nejn8"]
|
||||
load_path = "res://.godot/imported/Button1.png-365ba86758a2b041f5719410075e763e.ctex"
|
||||
|
||||
[resource]
|
||||
texture = SubResource("CompressedTexture2D_nejn8")
|
||||
texture_margin_left = 10.0
|
||||
texture_margin_top = 10.0
|
||||
texture_margin_right = 10.0
|
||||
texture_margin_bottom = 10.0
|
||||
5
scenes/menu/help/help.gd
Normal file
5
scenes/menu/help/help.gd
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
extends Control
|
||||
|
||||
|
||||
func _on_button_button_up() -> void:
|
||||
get_parent().loadStartMenu()
|
||||
117
scenes/menu/help/help.tscn
Normal file
117
scenes/menu/help/help.tscn
Normal file
|
|
@ -0,0 +1,117 @@
|
|||
[gd_scene load_steps=5 format=3 uid="uid://cvx1lyddvb8y5"]
|
||||
|
||||
[ext_resource type="Script" path="res://scenes/menu/help/help.gd" id="1_c8tk5"]
|
||||
[ext_resource type="Theme" uid="uid://cotw1alu4b2ad" path="res://Theme/MainTheme.tres" id="1_jto7r"]
|
||||
[ext_resource type="Texture2D" uid="uid://nrxf04ju38a3" path="res://Assets/Buttons/LeftArrow.png" id="2_s0e6h"]
|
||||
[ext_resource type="PackedScene" uid="uid://iq8pxx1suuqt" path="res://scenes/menu/background.tscn" id="2_w4woh"]
|
||||
|
||||
[node name="HELP" type="Control"]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
theme = ExtResource("1_jto7r")
|
||||
script = ExtResource("1_c8tk5")
|
||||
|
||||
[node name="Background" parent="." instance=ExtResource("2_w4woh")]
|
||||
|
||||
[node name="Label" type="Label" parent="."]
|
||||
visible = false
|
||||
layout_mode = 1
|
||||
anchors_preset = 8
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
offset_left = -500.0
|
||||
offset_top = -500.0
|
||||
offset_right = 500.0
|
||||
offset_bottom = 500.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
text = "KEYBOARD
|
||||
"
|
||||
|
||||
[node name="HBoxContainer" type="HBoxContainer" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 8
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
offset_left = -500.0
|
||||
offset_top = -500.0
|
||||
offset_right = 500.0
|
||||
offset_bottom = 500.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
alignment = 1
|
||||
|
||||
[node name="RichTextLabel" type="RichTextLabel" parent="HBoxContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
focus_mode = 2
|
||||
bbcode_enabled = true
|
||||
text = "[u][b]Keyboard/Tastatur[/b][/u]
|
||||
|
||||
[b]Move Left[/b]
|
||||
[ul]A[/ul]
|
||||
|
||||
[b]Move Right[/b]
|
||||
[ul]D[/ul]
|
||||
|
||||
[b]Move Up[/b]
|
||||
[ul]W[/ul]
|
||||
|
||||
[b]Move Down[/b]
|
||||
[ul]S[/ul]
|
||||
|
||||
[b]Roll[/b]
|
||||
[ul]R[/ul]
|
||||
[ul]Shift[/ul]
|
||||
|
||||
[b]Pickup[/b]
|
||||
[ul]E[/ul]"
|
||||
selection_enabled = true
|
||||
|
||||
[node name="RichTextLabel2" type="RichTextLabel" parent="HBoxContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
focus_mode = 2
|
||||
bbcode_enabled = true
|
||||
text = "[u][b]Controller[/b][/u]
|
||||
|
||||
[b]Move Left[/b]
|
||||
[ul]Left Stick Left[/ul]
|
||||
|
||||
[b]Move Right[/b]
|
||||
[ul]Left Stick Right[/ul]
|
||||
|
||||
[b]Move Up[/b]
|
||||
[ul]Left Stick Up[/ul]
|
||||
|
||||
[b]Move Down[/b]
|
||||
[ul]Left Stick Down[/ul]
|
||||
|
||||
[b]Roll[/b]
|
||||
[ul]X (XBOX)[/ul]
|
||||
[ul]Y (Nintendo)[/ul]
|
||||
|
||||
[b]Pickup[/b]
|
||||
[ul]A (XBOX)[/ul]
|
||||
[ul]B (NIntendo)[/ul]
|
||||
"
|
||||
selection_enabled = true
|
||||
|
||||
[node name="Button" type="Button" parent="."]
|
||||
layout_mode = 1
|
||||
offset_left = 16.0
|
||||
offset_top = 16.0
|
||||
offset_right = 56.0
|
||||
offset_bottom = 56.0
|
||||
scale = Vector2(2, 2)
|
||||
icon = ExtResource("2_s0e6h")
|
||||
|
||||
[connection signal="button_up" from="Button" to="." method="_on_button_button_up"]
|
||||
|
|
@ -3,3 +3,11 @@ extends Control
|
|||
|
||||
func _on_start_button_button_up() -> void:
|
||||
get_parent().loadGame()
|
||||
|
||||
func _physics_process(delta: float) -> void:
|
||||
$Portal.play("default")
|
||||
$Portal.position = get_viewport().get_visible_rect().size /2
|
||||
|
||||
|
||||
func _on_start_button_2_pressed() -> void:
|
||||
get_parent().loadHelp()
|
||||
|
|
|
|||
|
|
@ -1,9 +1,45 @@
|
|||
[gd_scene load_steps=5 format=3 uid="uid://ceu62dbrvd31p"]
|
||||
[gd_scene load_steps=10 format=3 uid="uid://ceu62dbrvd31p"]
|
||||
|
||||
[ext_resource type="Theme" uid="uid://cotw1alu4b2ad" path="res://Theme/MainTheme.tres" id="1_2eoii"]
|
||||
[ext_resource type="Script" path="res://scenes/menu/startMenu/start_menu.gd" id="2_y1mcp"]
|
||||
[ext_resource type="PackedScene" uid="uid://br7eqr6jomsg4" path="res://scenes/game/map/map.tscn" id="3_w2x7d"]
|
||||
[ext_resource type="Texture2D" uid="uid://b2xbgtcyxvi73" path="res://Assets/Player/Player.png" id="4_0cn2q"]
|
||||
[ext_resource type="PackedScene" uid="uid://iq8pxx1suuqt" path="res://scenes/menu/background.tscn" id="3_1hlwn"]
|
||||
[ext_resource type="Texture2D" uid="uid://c3o6hrpc0fim2" path="res://Assets/Portal.png" id="3_pyyyw"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_drumk"]
|
||||
atlas = ExtResource("3_pyyyw")
|
||||
region = Rect2(0, 0, 128, 128)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_ixrr4"]
|
||||
atlas = ExtResource("3_pyyyw")
|
||||
region = Rect2(128, 0, 128, 128)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_uu1bm"]
|
||||
atlas = ExtResource("3_pyyyw")
|
||||
region = Rect2(256, 0, 128, 128)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_fv6fu"]
|
||||
atlas = ExtResource("3_pyyyw")
|
||||
region = Rect2(384, 0, 128, 128)
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_scf5k"]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_drumk")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_ixrr4")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_uu1bm")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_fv6fu")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"default",
|
||||
"speed": 5.0
|
||||
}]
|
||||
|
||||
[node name="StartMenu" type="Control"]
|
||||
layout_mode = 3
|
||||
|
|
@ -15,18 +51,16 @@ grow_vertical = 2
|
|||
theme = ExtResource("1_2eoii")
|
||||
script = ExtResource("2_y1mcp")
|
||||
|
||||
[node name="Map" parent="." instance=ExtResource("3_w2x7d")]
|
||||
visible = false
|
||||
position = Vector2(976, 540)
|
||||
[node name="Background" parent="." instance=ExtResource("3_1hlwn")]
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||||
visible = false
|
||||
position = Vector2(960, 456)
|
||||
scale = Vector2(1.5, 1.5)
|
||||
texture = ExtResource("4_0cn2q")
|
||||
hframes = 25
|
||||
[node name="Portal" type="AnimatedSprite2D" parent="."]
|
||||
position = Vector2(956, 542)
|
||||
scale = Vector2(2, 2)
|
||||
sprite_frames = SubResource("SpriteFrames_scf5k")
|
||||
frame_progress = 0.053071
|
||||
|
||||
[node name="ColorRect" type="ColorRect" parent="."]
|
||||
visible = false
|
||||
modulate = Color(1, 1, 1, 0.376471)
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
|
|
@ -51,4 +85,9 @@ layout_mode = 2
|
|||
layout_mode = 2
|
||||
text = "PLAY"
|
||||
|
||||
[node name="StartButton2" type="Button" parent="CenterContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
text = "HELP"
|
||||
|
||||
[connection signal="button_up" from="CenterContainer/VBoxContainer/StartButton" to="." method="_on_start_button_button_up"]
|
||||
[connection signal="pressed" from="CenterContainer/VBoxContainer/StartButton2" to="." method="_on_start_button_2_pressed"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue