First Level Test
This commit is contained in:
parent
c12c4be394
commit
d7fab32f44
16 changed files with 549 additions and 26 deletions
52
levels/ui/ceres.gd
Normal file
52
levels/ui/ceres.gd
Normal file
|
@ -0,0 +1,52 @@
|
|||
extends Control
|
||||
func _ready():
|
||||
Input.set_mouse_mode(Input.MOUSE_MODE_HIDDEN)
|
||||
$VBoxContainer/L20.grab_focus()
|
||||
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
func _process(delta):
|
||||
pass
|
||||
|
||||
func _level():
|
||||
# This is like autoloading the scene, only
|
||||
# it happens after already loading the main scene.
|
||||
get_tree().change_scene_to_file("res://backgounds/disclaimer.tscn")
|
||||
#Global.live = 1
|
||||
#Global.gamelevel = randi() % 3
|
||||
#if Global.gamelevel == 0:
|
||||
# get_tree().change_scene_to_file("res://backgounds/galaxy.tscn")
|
||||
#elif Global.gamelevel == 1:
|
||||
# get_tree().change_scene_to_file("res://backgounds/wormhole.tscn")
|
||||
#else:
|
||||
# get_tree().change_scene_to_file("res://backgounds/abstract.tscn")
|
||||
#get_tree().root.add_child(title)
|
||||
#get_tree().root.remove_child(boot)
|
||||
#boot.queue_free()
|
||||
|
||||
func _input(event):
|
||||
# Mouse in viewport coordinates.
|
||||
if Input.is_action_just_pressed("ui_cancel"):
|
||||
_on_back_pressed()
|
||||
#print("Mouse Click/Unclick at: ", event.position)
|
||||
# if highlighted == 1:
|
||||
# _on_debug_pressed()
|
||||
# if highlighted == 2:
|
||||
# _on_exit_pressed()
|
||||
# else:
|
||||
# _on_start_pressed()
|
||||
# elif Input.is_action_pressed("ui_up"):
|
||||
# focus_next
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
func _on_back_pressed():
|
||||
get_tree().change_scene_to_file("res://levels/ui/scene.tscn")
|
||||
|
||||
|
||||
func _on_l_20_pressed():
|
||||
Global.dplace = [1, 11, 19]
|
||||
Global.live = 1
|
||||
get_tree().change_scene_to_file("res://levels/ui/gameplay.tscn")
|
98
levels/ui/ceres.tscn
Normal file
98
levels/ui/ceres.tscn
Normal file
|
@ -0,0 +1,98 @@
|
|||
[gd_scene load_steps=6 format=3 uid="uid://bafdmqwba2oop"]
|
||||
|
||||
[ext_resource type="Script" path="res://levels/ui/ceres.gd" id="1_tox8g"]
|
||||
[ext_resource type="Texture2D" uid="uid://bxa27c7gnivwx" path="res://backgounds/night-sky-at-ceres.jpg" id="2_2li8v"]
|
||||
[ext_resource type="PackedScene" uid="uid://d31udhuuwrajn" path="res://levels/bottomhud.tscn" id="3_uojcp"]
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_6u0xs"]
|
||||
bg_color = Color(0, 0.8, 0, 1)
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_r2qrn"]
|
||||
bg_color = Color(0, 0.8, 0, 1)
|
||||
|
||||
[node name="Ceres" type="Control"]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
script = ExtResource("1_tox8g")
|
||||
|
||||
[node name="Night Sky" type="TextureRect" parent="."]
|
||||
layout_mode = 0
|
||||
offset_right = 1280.0
|
||||
offset_bottom = 720.0
|
||||
texture = ExtResource("2_2li8v")
|
||||
|
||||
[node name="Game name" type="Label" parent="."]
|
||||
layout_mode = 0
|
||||
offset_left = 496.0
|
||||
offset_top = 3.0
|
||||
offset_right = 790.0
|
||||
offset_bottom = 73.0
|
||||
theme_override_font_sizes/font_size = 40
|
||||
text = "Shrine of the doomed souls"
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 7
|
||||
anchor_left = 0.5
|
||||
anchor_top = 1.0
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 1.0
|
||||
offset_left = -129.5
|
||||
offset_top = -362.0
|
||||
offset_right = 129.5
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 0
|
||||
|
||||
[node name="L20" type="Button" parent="VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 32
|
||||
theme_override_styles/focus = SubResource("StyleBoxFlat_6u0xs")
|
||||
text = "CERES_L20_DESC"
|
||||
|
||||
[node name="Lilytest" type="Button" parent="VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 32
|
||||
theme_override_styles/focus = SubResource("StyleBoxFlat_6u0xs")
|
||||
text = "Unused
|
||||
"
|
||||
|
||||
[node name="Dialogtest" type="Button" parent="VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 32
|
||||
theme_override_styles/focus = SubResource("StyleBoxFlat_6u0xs")
|
||||
text = "Unused
|
||||
"
|
||||
|
||||
[node name="Bullethell" type="Button" parent="VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 32
|
||||
theme_override_styles/focus = SubResource("StyleBoxFlat_6u0xs")
|
||||
text = "Unused"
|
||||
|
||||
[node name="Credits" type="Button" parent="VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 32
|
||||
theme_override_styles/focus = SubResource("StyleBoxFlat_6u0xs")
|
||||
text = "Unused"
|
||||
|
||||
[node name="WIP" type="Button" parent="VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 32
|
||||
theme_override_styles/focus = SubResource("StyleBoxFlat_6u0xs")
|
||||
text = "Unused"
|
||||
|
||||
[node name="Back" type="Button" parent="VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 32
|
||||
theme_override_styles/focus = SubResource("StyleBoxFlat_r2qrn")
|
||||
text = "BUTTON_RETURN"
|
||||
|
||||
[node name="Bottomhud" parent="." instance=ExtResource("3_uojcp")]
|
||||
layout_mode = 1
|
||||
|
||||
[connection signal="pressed" from="VBoxContainer/L20" to="." method="_on_l_20_pressed"]
|
||||
[connection signal="pressed" from="VBoxContainer/Back" to="." method="_on_back_pressed"]
|
|
@ -30,12 +30,16 @@ texture = ExtResource("2_1w2er")
|
|||
|
||||
[node name="Game name" type="Label" parent="."]
|
||||
layout_mode = 0
|
||||
offset_left = 339.0
|
||||
offset_left = 44.0
|
||||
offset_top = 61.0
|
||||
offset_right = 991.0
|
||||
offset_right = 1234.0
|
||||
offset_bottom = 207.0
|
||||
theme_override_font_sizes/font_size = 106
|
||||
text = "Debug Menu"
|
||||
text = "MENU_DEBUG"
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="Bottomhud" parent="." instance=ExtResource("4_ogmre")]
|
||||
layout_mode = 1
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="."]
|
||||
layout_mode = 1
|
||||
|
@ -44,9 +48,9 @@ anchor_left = 0.5
|
|||
anchor_top = 1.0
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 1.0
|
||||
offset_left = -129.5
|
||||
offset_top = -362.0
|
||||
offset_right = 129.5
|
||||
offset_left = -342.0
|
||||
offset_top = -484.0
|
||||
offset_right = 342.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 0
|
||||
|
||||
|
@ -72,10 +76,7 @@ text = "Sound Test"
|
|||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 80
|
||||
theme_override_styles/focus = SubResource("StyleBoxFlat_r2qrn")
|
||||
text = "Back"
|
||||
|
||||
[node name="Bottomhud" parent="." instance=ExtResource("4_ogmre")]
|
||||
layout_mode = 1
|
||||
text = "BUTTON_RETURN"
|
||||
|
||||
[connection signal="pressed" from="VBoxContainer/Gamepad Test" to="." method="_on_gamepad_test_pressed"]
|
||||
[connection signal="pressed" from="VBoxContainer/Scene Selector2" to="." method="_on_scene_selector_pressed"]
|
||||
|
|
|
@ -207,7 +207,7 @@ text = "Boss Fight (Earth)"
|
|||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 25
|
||||
theme_override_styles/focus = SubResource("StyleBoxFlat_0dqsq")
|
||||
text = "Back"
|
||||
text = "BUTTON_RETURN"
|
||||
|
||||
[node name="Bottomhud" parent="." instance=ExtResource("4_a1ux8")]
|
||||
layout_mode = 1
|
||||
|
|
|
@ -64,3 +64,7 @@ func _on_disclaimer_pressed():
|
|||
|
||||
func _on_testrooms_pressed():
|
||||
get_tree().change_scene_to_file("res://levels/ui/testrooms.tscn")
|
||||
|
||||
|
||||
func _on_ceres_pressed():
|
||||
get_tree().change_scene_to_file("res://levels/ui/ceres.tscn")
|
||||
|
|
|
@ -59,6 +59,12 @@ theme_override_font_sizes/font_size = 32
|
|||
theme_override_styles/focus = SubResource("StyleBoxFlat_6u0xs")
|
||||
text = "Shrine of the doomed souls"
|
||||
|
||||
[node name="Ceres" type="Button" parent="VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 32
|
||||
theme_override_styles/focus = SubResource("StyleBoxFlat_6u0xs")
|
||||
text = "Ceres"
|
||||
|
||||
[node name="Results" type="Button" parent="VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 32
|
||||
|
@ -81,13 +87,14 @@ text = "Work in Progress"
|
|||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 32
|
||||
theme_override_styles/focus = SubResource("StyleBoxFlat_r2qrn")
|
||||
text = "Back"
|
||||
text = "BUTTON_RETURN"
|
||||
|
||||
[node name="Bottomhud" parent="." instance=ExtResource("4_2y7h7")]
|
||||
layout_mode = 1
|
||||
|
||||
[connection signal="pressed" from="VBoxContainer/Disclaimer" to="." method="_on_disclaimer_pressed"]
|
||||
[connection signal="pressed" from="VBoxContainer/Testrooms" to="." method="_on_testrooms_pressed"]
|
||||
[connection signal="pressed" from="VBoxContainer/Ceres" to="." method="_on_ceres_pressed"]
|
||||
[connection signal="pressed" from="VBoxContainer/Results" to="." method="_on_results_pressed"]
|
||||
[connection signal="pressed" from="VBoxContainer/Credits" to="." method="_on_credits_pressed"]
|
||||
[connection signal="pressed" from="VBoxContainer/WIP" to="." method="_on_wip_pressed"]
|
||||
|
|
|
@ -83,7 +83,7 @@ text = "Explosion"
|
|||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 25
|
||||
theme_override_styles/focus = SubResource("StyleBoxFlat_0dqsq")
|
||||
text = "Back"
|
||||
text = "BUTTON_RETURN"
|
||||
|
||||
[node name="Bottomhud" parent="." instance=ExtResource("4_xxv3m")]
|
||||
layout_mode = 1
|
||||
|
|
|
@ -23,6 +23,7 @@ grow_vertical = 2
|
|||
script = ExtResource("1_3bg6p")
|
||||
|
||||
[node name="Night Sky" type="TextureRect" parent="."]
|
||||
layout_mode = 0
|
||||
offset_right = 1280.0
|
||||
offset_bottom = 720.0
|
||||
texture = ExtResource("2_x41qm")
|
||||
|
@ -65,7 +66,7 @@ text = "Sound Effects"
|
|||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 80
|
||||
theme_override_styles/focus = SubResource("StyleBoxFlat_wro6j")
|
||||
text = "Back"
|
||||
text = "BUTTON_RETURN"
|
||||
|
||||
[node name="Bottomhud" parent="." instance=ExtResource("4_2a53a")]
|
||||
layout_mode = 1
|
||||
|
|
|
@ -89,7 +89,7 @@ text = "Unused"
|
|||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 32
|
||||
theme_override_styles/focus = SubResource("StyleBoxFlat_r2qrn")
|
||||
text = "Back"
|
||||
text = "BUTTON_RETURN"
|
||||
|
||||
[node name="Bottomhud" parent="." instance=ExtResource("4_jvl8w")]
|
||||
layout_mode = 1
|
||||
|
|
|
@ -38,6 +38,9 @@ theme_override_font_sizes/font_size = 95
|
|||
text = "GAME_NAME"
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="Bottomhud" parent="." instance=ExtResource("4_0qcfw")]
|
||||
layout_mode = 1
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 7
|
||||
|
@ -45,9 +48,9 @@ anchor_left = 0.5
|
|||
anchor_top = 1.0
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 1.0
|
||||
offset_left = -129.5
|
||||
offset_left = -322.0
|
||||
offset_top = -362.0
|
||||
offset_right = 129.5
|
||||
offset_right = 322.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 0
|
||||
|
||||
|
@ -55,22 +58,19 @@ grow_vertical = 0
|
|||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 80
|
||||
theme_override_styles/focus = SubResource("StyleBoxFlat_821nm")
|
||||
text = "Start"
|
||||
text = "BUTTON_START"
|
||||
|
||||
[node name="Debug" type="Button" parent="VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 80
|
||||
theme_override_styles/focus = SubResource("StyleBoxFlat_6u0xs")
|
||||
text = "Debug"
|
||||
text = "BUTTON_DEBUG"
|
||||
|
||||
[node name="Exit" type="Button" parent="VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 80
|
||||
theme_override_styles/focus = SubResource("StyleBoxFlat_r2qrn")
|
||||
text = "Exit"
|
||||
|
||||
[node name="Bottomhud" parent="." instance=ExtResource("4_0qcfw")]
|
||||
layout_mode = 1
|
||||
text = "BUTTON_EXIT"
|
||||
|
||||
[connection signal="pressed" from="VBoxContainer/Start" to="." method="_on_start_pressed"]
|
||||
[connection signal="pressed" from="VBoxContainer/Debug" to="." method="_on_debug_pressed"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue