testspawn
This commit is contained in:
parent
3e93e6bf33
commit
392e565cf0
401 changed files with 3815 additions and 3210 deletions
|
@ -1,46 +1,46 @@
|
|||
[gd_scene load_steps=6 format=3 uid="uid://b5cxd2rmstnpt"]
|
||||
[gd_scene load_steps=6 format=2]
|
||||
|
||||
[ext_resource type="Script" path="res://levels/Testrooms/testspawn.gd" id="1_ps8y8"]
|
||||
[ext_resource type="Texture2D" uid="uid://kxvipok4tnuw" path="res://backgounds/wip.jpg" id="1_yw0he"]
|
||||
[ext_resource type="PackedScene" uid="uid://cehe6sm8ly06u" path="res://sprites/common/player/player.tscn" id="3_iqxlc"]
|
||||
[ext_resource path="res://backgounds/wip.jpg" type="Texture" id=1]
|
||||
[ext_resource path="res://levels/Testrooms/testspawn.gd" type="Script" id=2]
|
||||
[ext_resource path="res://sprites/common/player/player.tscn" type="PackedScene" id=3]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_nytv7"]
|
||||
size = Vector2(20, 761)
|
||||
[sub_resource type="RectangleShape2D" id=1]
|
||||
extents = Vector2( 18.5, 446.5 )
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_wkumn"]
|
||||
size = Vector2(1283, 20)
|
||||
[sub_resource type="RectangleShape2D" id=2]
|
||||
extents = Vector2( 676, 20.5 )
|
||||
|
||||
[node name="Testspawn" type="Node2D"]
|
||||
script = ExtResource("1_ps8y8")
|
||||
script = ExtResource( 2 )
|
||||
|
||||
[node name="WIP" type="TextureRect" parent="."]
|
||||
offset_right = 40.0
|
||||
offset_bottom = 40.0
|
||||
texture = ExtResource("1_yw0he")
|
||||
margin_right = 40.0
|
||||
margin_bottom = 40.0
|
||||
texture = ExtResource( 1 )
|
||||
|
||||
[node name="StaticBody2D" type="StaticBody2D" parent="."]
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D"]
|
||||
position = Vector2(-11, 361.5)
|
||||
shape = SubResource("RectangleShape2D_nytv7")
|
||||
position = Vector2( -18, 373.5 )
|
||||
shape = SubResource( 1 )
|
||||
|
||||
[node name="StaticBody2D2" type="StaticBody2D" parent="."]
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D2"]
|
||||
position = Vector2(1293, 358)
|
||||
shape = SubResource("RectangleShape2D_nytv7")
|
||||
position = Vector2( 1299, 376 )
|
||||
shape = SubResource( 1 )
|
||||
|
||||
[node name="StaticBody2D3" type="StaticBody2D" parent="."]
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D3"]
|
||||
position = Vector2(641.5, -9)
|
||||
shape = SubResource("RectangleShape2D_wkumn")
|
||||
position = Vector2( 641, -21 )
|
||||
shape = SubResource( 2 )
|
||||
|
||||
[node name="StaticBody2D4" type="StaticBody2D" parent="."]
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D4"]
|
||||
position = Vector2(644, 731)
|
||||
shape = SubResource("RectangleShape2D_wkumn")
|
||||
position = Vector2( 640, 741 )
|
||||
shape = SubResource( 2 )
|
||||
|
||||
[node name="Player" parent="." instance=ExtResource("3_iqxlc")]
|
||||
position = Vector2(633, 590)
|
||||
[node name="Player" parent="." instance=ExtResource( 3 )]
|
||||
position = Vector2( 635, 586 )
|
||||
|
|
|
@ -1,28 +1,28 @@
|
|||
[gd_scene load_steps=3 format=3 uid="uid://d31udhuuwrajn"]
|
||||
[gd_scene load_steps=4 format=2]
|
||||
|
||||
[ext_resource type="Script" path="res://fps.gd" id="1_15gcj"]
|
||||
[ext_resource type="Script" path="res://levels/Version.gd" id="2_qx4dy"]
|
||||
[ext_resource path="res://levels/Version.gd" type="Script" id=1]
|
||||
[ext_resource path="res://fps.gd" type="Script" id=2]
|
||||
[ext_resource path="res://fonts/about.tres" type="DynamicFont" id=3]
|
||||
|
||||
[node name="Bottomhud" type="Control"]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
rect_pivot_offset = Vector2( -290, -425 )
|
||||
|
||||
[node name="CanvasLayer" type="CanvasLayer" parent="."]
|
||||
|
||||
[node name="fps" type="Label" parent="CanvasLayer"]
|
||||
offset_left = 5.0
|
||||
offset_top = 697.0
|
||||
offset_right = 45.0
|
||||
offset_bottom = 720.0
|
||||
script = ExtResource("1_15gcj")
|
||||
margin_left = 5.0
|
||||
margin_top = 697.0
|
||||
margin_right = 45.0
|
||||
margin_bottom = 725.0
|
||||
custom_fonts/font = ExtResource( 3 )
|
||||
script = ExtResource( 2 )
|
||||
|
||||
[node name="Version" type="Label" parent="CanvasLayer"]
|
||||
offset_left = 1166.0
|
||||
offset_top = 691.0
|
||||
offset_right = 1246.0
|
||||
offset_bottom = 714.0
|
||||
script = ExtResource("2_qx4dy")
|
||||
margin_left = 1143.0
|
||||
margin_top = 691.0
|
||||
margin_right = 1223.0
|
||||
margin_bottom = 719.0
|
||||
custom_fonts/font = ExtResource( 3 )
|
||||
script = ExtResource( 1 )
|
||||
|
|
|
@ -17,7 +17,7 @@ func _ready() -> void:
|
|||
#add_child(fr)
|
||||
bgsound.stream = load(Global.musictracks[21])
|
||||
bgsound.mix_target = 1
|
||||
bgsound.bus = &"Music"
|
||||
bgsound.bus = "Music"
|
||||
#fl.mix_target = 1
|
||||
#fr.mix_target = 1
|
||||
#fl.stream = load("res://sfx/Front_Left.wav")
|
||||
|
@ -31,7 +31,7 @@ func _input(event):
|
|||
gamepadtest.new(event)
|
||||
# Mouse in viewport coordinates.
|
||||
if Input.is_action_just_pressed("ui_cancel"):
|
||||
get_tree().change_scene_to_file("res://levels/ui/soundtest.tscn")
|
||||
get_tree().change_scene("res://levels/ui/soundtest.tscn")
|
||||
elif Input.is_action_pressed("ui_left") && Input.is_action_pressed("ui_up"):
|
||||
fl.play(0)
|
||||
elif Input.is_action_pressed("ui_right") && Input.is_action_pressed("ui_up"):
|
||||
|
|
|
@ -1,98 +1,99 @@
|
|||
[gd_scene load_steps=11 format=3 uid="uid://bivi1ncwnunrp"]
|
||||
[gd_scene load_steps=14 format=2]
|
||||
|
||||
[ext_resource type="Script" path="res://levels/ui/alsatest.gd" id="1_hqlyt"]
|
||||
[ext_resource type="Texture2D" uid="uid://bxa27c7gnivwx" path="res://backgounds/night-sky-at-ceres.jpg" id="2_ribwb"]
|
||||
[ext_resource type="PackedScene" uid="uid://d31udhuuwrajn" path="res://levels/bottomhud.tscn" id="3_2tyrv"]
|
||||
[ext_resource type="Script" path="res://Game name.gd" id="3_iuwjb"]
|
||||
[ext_resource type="Script" path="res://start.gd" id="4_cp7hy"]
|
||||
[ext_resource type="Script" path="res://exit.gd" id="5_aogyx"]
|
||||
[ext_resource type="AudioStream" uid="uid://blllkdxk3sj0g" path="res://sfx/Front_Left.wav" id="7_msbfk"]
|
||||
[ext_resource type="AudioStream" uid="uid://dpn17gurdra0l" path="res://sfx/Front_Right.wav" id="8_tqilb"]
|
||||
[ext_resource type="AudioStream" uid="uid://by6uoipfuc23n" path="res://sfx/Rear_Left.wav" id="9_skj4n"]
|
||||
[ext_resource type="AudioStream" uid="uid://w1c1uvatrkbn" path="res://sfx/Rear_Right.wav" id="10_v8t5w"]
|
||||
[ext_resource path="res://backgounds/night-sky-at-ceres.jpg" type="Texture" id=1]
|
||||
[ext_resource path="res://sfx/Front_Left.wav" type="AudioStream" id=2]
|
||||
[ext_resource path="res://sfx/Front_Right.wav" type="AudioStream" id=3]
|
||||
[ext_resource path="res://exit.gd" type="Script" id=4]
|
||||
[ext_resource path="res://Game name.gd" type="Script" id=5]
|
||||
[ext_resource path="res://start.gd" type="Script" id=6]
|
||||
[ext_resource path="res://fonts/title.tres" type="DynamicFont" id=7]
|
||||
[ext_resource path="res://fonts/start.tres" type="DynamicFont" id=8]
|
||||
[ext_resource path="res://fonts/about.tres" type="DynamicFont" id=9]
|
||||
[ext_resource path="res://levels/bottomhud.tscn" type="PackedScene" id=10]
|
||||
[ext_resource path="res://sfx/Rear_Left.wav" type="AudioStream" id=11]
|
||||
[ext_resource path="res://sfx/Rear_Right.wav" type="AudioStream" id=12]
|
||||
[ext_resource path="res://levels/ui/alsatest.gd" type="Script" id=13]
|
||||
|
||||
[node name="Alsatest" 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_hqlyt")
|
||||
script = ExtResource( 13 )
|
||||
|
||||
[node name="Night Sky" type="TextureRect" parent="."]
|
||||
layout_mode = 0
|
||||
offset_right = 1280.0
|
||||
offset_bottom = 720.0
|
||||
texture = ExtResource("2_ribwb")
|
||||
margin_right = 40.0
|
||||
margin_bottom = 40.0
|
||||
texture = ExtResource( 1 )
|
||||
|
||||
[node name="Game name" type="Label" parent="."]
|
||||
layout_mode = 0
|
||||
offset_left = 35.0
|
||||
offset_top = 308.0
|
||||
offset_right = 1241.0
|
||||
offset_bottom = 438.0
|
||||
theme_override_font_sizes/font_size = 95
|
||||
margin_top = 308.0
|
||||
margin_right = 1280.0
|
||||
margin_bottom = 438.0
|
||||
custom_fonts/font = ExtResource( 7 )
|
||||
text = "Advanced Linein
|
||||
Sound Architects"
|
||||
horizontal_alignment = 1
|
||||
script = ExtResource("3_iuwjb")
|
||||
align = 1
|
||||
valign = 1
|
||||
script = ExtResource( 5 )
|
||||
|
||||
[node name="start" type="Label" parent="."]
|
||||
layout_mode = 0
|
||||
offset_left = 46.0
|
||||
offset_top = 92.0
|
||||
offset_right = 1224.0
|
||||
offset_bottom = 147.0
|
||||
theme_override_font_sizes/font_size = 40
|
||||
text = "ALSA_TEST_SPK"
|
||||
horizontal_alignment = 1
|
||||
script = ExtResource("4_cp7hy")
|
||||
margin_top = 602.0
|
||||
margin_right = 1280.0
|
||||
margin_bottom = 657.0
|
||||
custom_fonts/font = ExtResource( 8 )
|
||||
text = "TEXT_EXIT"
|
||||
align = 1
|
||||
script = ExtResource( 6 )
|
||||
|
||||
[node name="exit" type="Label" parent="."]
|
||||
layout_mode = 0
|
||||
offset_left = 47.0
|
||||
offset_top = 602.0
|
||||
offset_right = 1208.0
|
||||
offset_bottom = 657.0
|
||||
theme_override_font_sizes/font_size = 40
|
||||
text = "TEXT_EXIT"
|
||||
horizontal_alignment = 1
|
||||
script = ExtResource("5_aogyx")
|
||||
margin_top = 92.0
|
||||
margin_right = 1280.0
|
||||
margin_bottom = 147.0
|
||||
custom_fonts/font = ExtResource( 8 )
|
||||
text = "ALSA_TEST_SPK"
|
||||
align = 1
|
||||
script = ExtResource( 4 )
|
||||
|
||||
[node name="Bottomhud" parent="." instance=ExtResource("3_2tyrv")]
|
||||
layout_mode = 1
|
||||
[node name="Label" type="Label" parent="."]
|
||||
margin_left = 378.0
|
||||
margin_top = 656.0
|
||||
margin_right = 809.0
|
||||
margin_bottom = 705.0
|
||||
custom_fonts/font = ExtResource( 9 )
|
||||
text = "2023-2024 Page Asgardius GNU General Public License 3
|
||||
2016-2024 Asgardius Virtualx Project"
|
||||
align = 1
|
||||
|
||||
[node name="Bottomhud" parent="." instance=ExtResource( 10 )]
|
||||
|
||||
[node name="Front_Left" type="AudioStreamPlayer3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -5, 0, -5)
|
||||
stream = ExtResource("7_msbfk")
|
||||
volume_db = 80.0
|
||||
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -5, 0, -5 )
|
||||
stream = ExtResource( 2 )
|
||||
unit_db = 80.0
|
||||
unit_size = 10.0
|
||||
max_distance = 30.0
|
||||
panning_strength = 50.0
|
||||
bus = &"SFX1"
|
||||
bus = "SFX1"
|
||||
|
||||
[node name="Front_Right" type="AudioStreamPlayer3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 5, 0, -5)
|
||||
stream = ExtResource("8_tqilb")
|
||||
volume_db = 80.0
|
||||
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 5, 0, -5 )
|
||||
stream = ExtResource( 3 )
|
||||
unit_db = 80.0
|
||||
unit_size = 10.0
|
||||
max_distance = 30.0
|
||||
panning_strength = 50.0
|
||||
bus = &"SFX1"
|
||||
bus = "SFX1"
|
||||
|
||||
[node name="Rear_Left" type="AudioStreamPlayer3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -5, 0, 5)
|
||||
stream = ExtResource("9_skj4n")
|
||||
volume_db = 80.0
|
||||
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -5, 0, 5 )
|
||||
stream = ExtResource( 11 )
|
||||
unit_db = 80.0
|
||||
unit_size = 10.0
|
||||
max_distance = 30.0
|
||||
panning_strength = 50.0
|
||||
bus = &"SFX1"
|
||||
bus = "SFX1"
|
||||
|
||||
[node name="Rear_Right" type="AudioStreamPlayer3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 5, 0, -5)
|
||||
stream = ExtResource("10_v8t5w")
|
||||
volume_db = 80.0
|
||||
max_distance = 30.0
|
||||
panning_strength = 50.0
|
||||
bus = &"SFX1"
|
||||
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 5, 0, 5 )
|
||||
stream = ExtResource( 12 )
|
||||
unit_db = 80.0
|
||||
unit_size = 10.0
|
||||
bus = "SFX1"
|
||||
|
||||
[node name="Camera3D" type="Camera3D" parent="."]
|
||||
[node name="Camera3D" type="Camera" parent="."]
|
||||
|
|
|
@ -15,7 +15,7 @@ func _ready():
|
|||
add_child(bgsound)
|
||||
bgsound.stream = song1
|
||||
bgsound.play(0)
|
||||
bgsound.bus = &"Music"
|
||||
bgsound.bus = "Music"
|
||||
#pass # Replace with function body.
|
||||
|
||||
|
||||
|
@ -25,7 +25,7 @@ func _process(delta):
|
|||
# Compensate for output latency.
|
||||
bgtime -= AudioServer.get_output_latency()
|
||||
#print("Time is: ", bgtime)
|
||||
if bgtime < 0:
|
||||
if (playindex == 0 && bgtime > 190) || (playindex == 1 && bgtime > 114) || (playindex == 2 && bgtime > 171):
|
||||
if playstart:
|
||||
if playindex == 0:
|
||||
playindex = 1
|
||||
|
@ -47,9 +47,9 @@ func _complete():
|
|||
# This is like autoloading the scene, only
|
||||
# it happens after already loading the main scene.
|
||||
if Global.debug:
|
||||
get_tree().change_scene_to_file("res://levels/ui/scene.tscn")
|
||||
get_tree().change_scene("res://levels/ui/scene.tscn")
|
||||
else:
|
||||
get_tree().change_scene_to_file("res://backgounds/result.tscn")
|
||||
get_tree().change_scene("res://backgounds/result.tscn")
|
||||
#get_tree().root.add_child(title)
|
||||
#get_tree().root.remove_child(boot)
|
||||
#boot.queue_free()
|
||||
|
|
|
@ -1,22 +1,24 @@
|
|||
[gd_scene load_steps=5 format=3 uid="uid://g8ajwoud48us"]
|
||||
[gd_scene load_steps=6 format=2]
|
||||
|
||||
[ext_resource type="Script" path="res://levels/ui/credits.gd" id="1_y6orl"]
|
||||
[ext_resource type="Texture2D" uid="uid://bxa27c7gnivwx" path="res://backgounds/night-sky-at-ceres.jpg" id="2_6fe31"]
|
||||
[ext_resource type="PackedScene" uid="uid://d31udhuuwrajn" path="res://levels/bottomhud.tscn" id="5_yvope"]
|
||||
[ext_resource type="Script" path="res://levels/ui/roll.gd" id="6_3q8sp"]
|
||||
[ext_resource path="res://backgounds/night-sky-at-ceres.jpg" type="Texture" id=1]
|
||||
[ext_resource path="res://levels/bottomhud.tscn" type="PackedScene" id=2]
|
||||
[ext_resource path="res://fonts/about.tres" type="DynamicFont" id=4]
|
||||
[ext_resource path="res://levels/ui/roll.gd" type="Script" id=5]
|
||||
[ext_resource path="res://levels/ui/credits.gd" type="Script" id=6]
|
||||
|
||||
[node name="credits" type="Node2D"]
|
||||
script = ExtResource("1_y6orl")
|
||||
script = ExtResource( 6 )
|
||||
|
||||
[node name="Night Sky" type="TextureRect" parent="."]
|
||||
offset_right = 1280.0
|
||||
offset_bottom = 720.0
|
||||
texture = ExtResource("2_6fe31")
|
||||
margin_right = 1280.0
|
||||
margin_bottom = 720.0
|
||||
texture = ExtResource( 1 )
|
||||
|
||||
[node name="roll" type="Label" parent="."]
|
||||
offset_top = 720.0
|
||||
offset_right = 1280.0
|
||||
offset_bottom = 12504.0
|
||||
margin_top = 720.0
|
||||
margin_right = 1280.0
|
||||
margin_bottom = 14729.0
|
||||
custom_fonts/font = ExtResource( 4 )
|
||||
text = "Midori in the Magic School
|
||||
|
||||
Staff
|
||||
|
@ -690,7 +692,7 @@ You will find all tracks from this composer that were used here
|
|||
You can reuse assets for non-commercial purposes only
|
||||
|
||||
Don't give up and fight for your dreams"
|
||||
horizontal_alignment = 1
|
||||
script = ExtResource("6_3q8sp")
|
||||
align = 1
|
||||
script = ExtResource( 5 )
|
||||
|
||||
[node name="Bottomhud" parent="." instance=ExtResource("5_yvope")]
|
||||
[node name="Bottomhud" parent="." instance=ExtResource( 2 )]
|
||||
|
|
|
@ -13,15 +13,15 @@ func _process(delta):
|
|||
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")
|
||||
get_tree().change_scene("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")
|
||||
# get_tree().change_scene("res://backgounds/galaxy.tscn")
|
||||
#elif Global.gamelevel == 1:
|
||||
# get_tree().change_scene_to_file("res://backgounds/wormhole.tscn")
|
||||
# get_tree().change_scene("res://backgounds/wormhole.tscn")
|
||||
#else:
|
||||
# get_tree().change_scene_to_file("res://backgounds/abstract.tscn")
|
||||
# get_tree().change_scene("res://backgounds/abstract.tscn")
|
||||
#get_tree().root.add_child(title)
|
||||
#get_tree().root.remove_child(boot)
|
||||
#boot.queue_free()
|
||||
|
@ -44,20 +44,20 @@ func _input(event):
|
|||
|
||||
|
||||
func _on_scene_selector_pressed():
|
||||
get_tree().change_scene_to_file("res://levels/ui/scene.tscn")
|
||||
get_tree().change_scene("res://levels/ui/scene.tscn")
|
||||
|
||||
|
||||
func _on_sound_test_pressed():
|
||||
get_tree().change_scene_to_file("res://levels/ui/soundtest.tscn")
|
||||
get_tree().change_scene("res://levels/ui/soundtest.tscn")
|
||||
|
||||
|
||||
func _on_back_pressed():
|
||||
Global.debug = false
|
||||
get_tree().change_scene_to_file("res://levels/ui/settings.tscn")
|
||||
get_tree().change_scene("res://levels/ui/settings.tscn")
|
||||
|
||||
|
||||
func _on_gamepad_test_pressed():
|
||||
get_tree().change_scene_to_file("res://levels/ui/gamepadtest.tscn")
|
||||
get_tree().change_scene("res://levels/ui/gamepadtest.tscn")
|
||||
|
||||
func _statrebase():
|
||||
for i in 4:
|
||||
|
|
|
@ -1,84 +1,81 @@
|
|||
[gd_scene load_steps=7 format=3 uid="uid://brrta1s63r2q2"]
|
||||
[gd_scene load_steps=9 format=2]
|
||||
|
||||
[ext_resource type="Script" path="res://levels/ui/debug.gd" id="1_gm5qw"]
|
||||
[ext_resource type="Texture2D" uid="uid://bxa27c7gnivwx" path="res://backgounds/night-sky-at-ceres.jpg" id="2_1w2er"]
|
||||
[ext_resource type="PackedScene" uid="uid://d31udhuuwrajn" path="res://levels/bottomhud.tscn" id="4_ogmre"]
|
||||
[ext_resource path="res://levels/ui/debug.gd" type="Script" id=1]
|
||||
[ext_resource path="res://fonts/button1.tres" type="DynamicFont" id=2]
|
||||
[ext_resource path="res://backgounds/night-sky-at-ceres.jpg" type="Texture" id=3]
|
||||
[ext_resource path="res://levels/bottomhud.tscn" type="PackedScene" id=4]
|
||||
[ext_resource path="res://fonts/title.tres" type="DynamicFont" id=5]
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_821nm"]
|
||||
bg_color = Color(0, 0.8, 0, 1)
|
||||
[sub_resource type="StyleBoxFlat" id=1]
|
||||
bg_color = Color( 0, 0.8, 0, 1 )
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_6u0xs"]
|
||||
bg_color = Color(0, 0.8, 0, 1)
|
||||
[sub_resource type="StyleBoxFlat" id=2]
|
||||
bg_color = Color( 0, 0.8, 0, 1 )
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_r2qrn"]
|
||||
bg_color = Color(0, 0.8, 0, 1)
|
||||
[sub_resource type="StyleBoxFlat" id=3]
|
||||
bg_color = Color( 0, 0.8, 0, 1 )
|
||||
|
||||
[node name="Debug" 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_gm5qw")
|
||||
script = ExtResource( 1 )
|
||||
|
||||
[node name="Night Sky" type="TextureRect" parent="."]
|
||||
layout_mode = 0
|
||||
offset_right = 1280.0
|
||||
offset_bottom = 720.0
|
||||
texture = ExtResource("2_1w2er")
|
||||
margin_right = 1280.0
|
||||
margin_bottom = 720.0
|
||||
texture = ExtResource( 3 )
|
||||
|
||||
[node name="Game name" type="Label" parent="."]
|
||||
layout_mode = 0
|
||||
offset_left = 44.0
|
||||
offset_top = 61.0
|
||||
offset_right = 1234.0
|
||||
offset_bottom = 207.0
|
||||
theme_override_font_sizes/font_size = 106
|
||||
margin_top = 61.0
|
||||
margin_right = 1280.0
|
||||
margin_bottom = 207.0
|
||||
custom_fonts/font = ExtResource( 5 )
|
||||
text = "MENU_DEBUG"
|
||||
horizontal_alignment = 1
|
||||
align = 1
|
||||
valign = 1
|
||||
|
||||
[node name="Bottomhud" parent="." instance=ExtResource("4_ogmre")]
|
||||
layout_mode = 1
|
||||
[node name="Bottomhud" parent="." instance=ExtResource( 4 )]
|
||||
|
||||
[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 = -342.0
|
||||
offset_top = -484.0
|
||||
offset_right = 342.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 0
|
||||
margin_left = 174.0
|
||||
margin_top = 236.0
|
||||
margin_right = 1157.0
|
||||
margin_bottom = 712.0
|
||||
alignment = 1
|
||||
|
||||
[node name="Gamepad Test" type="Button" parent="VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 80
|
||||
theme_override_styles/focus = SubResource("StyleBoxFlat_821nm")
|
||||
margin_top = 32.0
|
||||
margin_right = 983.0
|
||||
margin_bottom = 132.0
|
||||
custom_fonts/font = ExtResource( 2 )
|
||||
custom_styles/focus = SubResource( 1 )
|
||||
text = "BUTTON_GAMEPADTEST"
|
||||
|
||||
[node name="Scene Selector2" type="Button" parent="VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 80
|
||||
theme_override_styles/focus = SubResource("StyleBoxFlat_821nm")
|
||||
[node name="Scene Selector" type="Button" parent="VBoxContainer"]
|
||||
margin_top = 136.0
|
||||
margin_right = 983.0
|
||||
margin_bottom = 236.0
|
||||
custom_fonts/font = ExtResource( 2 )
|
||||
custom_styles/focus = SubResource( 2 )
|
||||
text = "BUTTON_SCENESELECT"
|
||||
|
||||
[node name="Sound Test" type="Button" parent="VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 80
|
||||
theme_override_styles/focus = SubResource("StyleBoxFlat_6u0xs")
|
||||
margin_top = 240.0
|
||||
margin_right = 983.0
|
||||
margin_bottom = 340.0
|
||||
custom_fonts/font = ExtResource( 2 )
|
||||
custom_styles/focus = SubResource( 3 )
|
||||
text = "BUTTON_SOUNDTEST"
|
||||
|
||||
[node name="Back" type="Button" parent="VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 80
|
||||
theme_override_styles/focus = SubResource("StyleBoxFlat_r2qrn")
|
||||
margin_top = 344.0
|
||||
margin_right = 983.0
|
||||
margin_bottom = 444.0
|
||||
custom_fonts/font = ExtResource( 2 )
|
||||
custom_styles/focus = SubResource( 3 )
|
||||
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"]
|
||||
[connection signal="pressed" from="VBoxContainer/Scene Selector" to="." method="_on_scene_selector_pressed"]
|
||||
[connection signal="pressed" from="VBoxContainer/Sound Test" to="." method="_on_sound_test_pressed"]
|
||||
[connection signal="pressed" from="VBoxContainer/Back" to="." method="_on_back_pressed"]
|
||||
|
|
|
@ -13,7 +13,7 @@ func _process(delta):
|
|||
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")
|
||||
get_tree().change_scene("res://backgounds/disclaimer.tscn")
|
||||
#Global.live = 1
|
||||
#Global.gamelevel = randi() % 3
|
||||
#if Global.gamelevel == 0:
|
||||
|
@ -47,7 +47,7 @@ func _input(event):
|
|||
|
||||
|
||||
func _on_back_pressed():
|
||||
get_tree().change_scene_to_file("res://levels/ui/savefile.tscn")
|
||||
get_tree().change_scene("res://levels/ui/savefile.tscn")
|
||||
|
||||
func _on_ram_pressed() -> void:
|
||||
Global.dificulty = 0
|
||||
|
|
|
@ -1,123 +1,129 @@
|
|||
[gd_scene load_steps=6 format=3 uid="uid://dbdi41u4i0yy4"]
|
||||
[gd_scene load_steps=7 format=2]
|
||||
|
||||
[ext_resource type="Script" path="res://levels/ui/erase.gd" id="1_csqu8"]
|
||||
[ext_resource type="Texture2D" uid="uid://bxa27c7gnivwx" path="res://backgounds/night-sky-at-ceres.jpg" id="2_6n1ip"]
|
||||
[ext_resource type="PackedScene" uid="uid://d31udhuuwrajn" path="res://levels/bottomhud.tscn" id="3_72nl0"]
|
||||
[ext_resource path="res://backgounds/night-sky-at-ceres.jpg" type="Texture" id=1]
|
||||
[ext_resource path="res://levels/bottomhud.tscn" type="PackedScene" id=2]
|
||||
[ext_resource path="res://levels/ui/erase.gd" type="Script" id=3]
|
||||
[ext_resource path="res://fonts/start.tres" type="DynamicFont" id=4]
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_6u0xs"]
|
||||
bg_color = Color(0, 0.8, 0, 1)
|
||||
[sub_resource type="StyleBoxFlat" id=1]
|
||||
bg_color = Color( 0, 0.8, 0, 1 )
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_r2qrn"]
|
||||
bg_color = Color(0, 0.8, 0, 1)
|
||||
[sub_resource type="StyleBoxFlat" id=3]
|
||||
bg_color = Color( 0, 0.8, 0, 1 )
|
||||
|
||||
[node name="Erase" 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_csqu8")
|
||||
script = ExtResource( 3 )
|
||||
|
||||
[node name="Night Sky" type="TextureRect" parent="."]
|
||||
layout_mode = 0
|
||||
offset_right = 1280.0
|
||||
offset_bottom = 720.0
|
||||
texture = ExtResource("2_6n1ip")
|
||||
margin_right = 1280.0
|
||||
margin_bottom = 720.0
|
||||
texture = ExtResource( 1 )
|
||||
|
||||
[node name="Game name" type="Label" parent="."]
|
||||
layout_mode = 0
|
||||
offset_left = 35.0
|
||||
offset_top = 3.0
|
||||
offset_right = 1235.0
|
||||
offset_bottom = 73.0
|
||||
theme_override_font_sizes/font_size = 40
|
||||
margin_top = 3.0
|
||||
margin_right = 1280.0
|
||||
margin_bottom = 73.0
|
||||
custom_fonts/font = ExtResource( 4 )
|
||||
text = "BUTTON_ERASE"
|
||||
horizontal_alignment = 1
|
||||
align = 1
|
||||
valign = 1
|
||||
|
||||
[node name="Bottomhud" parent="." instance=ExtResource("3_72nl0")]
|
||||
layout_mode = 1
|
||||
[node name="Bottomhud" parent="." instance=ExtResource( 2 )]
|
||||
|
||||
[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 = -139.0
|
||||
offset_top = -395.0
|
||||
offset_right = 139.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 0
|
||||
margin_left = 510.5
|
||||
margin_top = 97.0
|
||||
margin_right = 769.5
|
||||
margin_bottom = 808.0
|
||||
|
||||
[node name="Ram" type="Button" parent="VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 32
|
||||
theme_override_styles/focus = SubResource("StyleBoxFlat_6u0xs")
|
||||
margin_right = 392.0
|
||||
margin_bottom = 54.0
|
||||
custom_fonts/font = ExtResource( 4 )
|
||||
custom_styles/focus = SubResource( 1 )
|
||||
text = "Game Data in RAM"
|
||||
|
||||
[node name="Slot1" type="Button" parent="VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 32
|
||||
theme_override_styles/focus = SubResource("StyleBoxFlat_6u0xs")
|
||||
margin_top = 58.0
|
||||
margin_right = 392.0
|
||||
margin_bottom = 112.0
|
||||
custom_fonts/font = ExtResource( 4 )
|
||||
custom_styles/focus = SubResource( 1 )
|
||||
text = "Slot 1"
|
||||
|
||||
[node name="Slot2" type="Button" parent="VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 32
|
||||
theme_override_styles/focus = SubResource("StyleBoxFlat_6u0xs")
|
||||
margin_top = 116.0
|
||||
margin_right = 392.0
|
||||
margin_bottom = 170.0
|
||||
custom_fonts/font = ExtResource( 4 )
|
||||
custom_styles/focus = SubResource( 1 )
|
||||
text = "Slot 2"
|
||||
|
||||
[node name="Slot3" type="Button" parent="VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 32
|
||||
theme_override_styles/focus = SubResource("StyleBoxFlat_6u0xs")
|
||||
margin_top = 174.0
|
||||
margin_right = 392.0
|
||||
margin_bottom = 228.0
|
||||
custom_fonts/font = ExtResource( 4 )
|
||||
custom_styles/focus = SubResource( 1 )
|
||||
text = "Slot 3"
|
||||
|
||||
[node name="Slot4" type="Button" parent="VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 32
|
||||
theme_override_styles/focus = SubResource("StyleBoxFlat_6u0xs")
|
||||
margin_top = 232.0
|
||||
margin_right = 392.0
|
||||
margin_bottom = 286.0
|
||||
custom_fonts/font = ExtResource( 4 )
|
||||
custom_styles/focus = SubResource( 1 )
|
||||
text = "Slot 4"
|
||||
|
||||
[node name="Slot5" type="Button" parent="VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 32
|
||||
theme_override_styles/focus = SubResource("StyleBoxFlat_6u0xs")
|
||||
margin_top = 290.0
|
||||
margin_right = 392.0
|
||||
margin_bottom = 344.0
|
||||
custom_fonts/font = ExtResource( 4 )
|
||||
custom_styles/focus = SubResource( 1 )
|
||||
text = "Slot 5"
|
||||
|
||||
[node name="Slot6" type="Button" parent="VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 32
|
||||
theme_override_styles/focus = SubResource("StyleBoxFlat_6u0xs")
|
||||
margin_top = 348.0
|
||||
margin_right = 392.0
|
||||
margin_bottom = 402.0
|
||||
custom_fonts/font = ExtResource( 4 )
|
||||
custom_styles/focus = SubResource( 1 )
|
||||
text = "Slot 6"
|
||||
|
||||
[node name="Slot7" type="Button" parent="VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 32
|
||||
theme_override_styles/focus = SubResource("StyleBoxFlat_6u0xs")
|
||||
margin_top = 406.0
|
||||
margin_right = 392.0
|
||||
margin_bottom = 460.0
|
||||
custom_fonts/font = ExtResource( 4 )
|
||||
custom_styles/focus = SubResource( 1 )
|
||||
text = "Slot 7"
|
||||
|
||||
[node name="Slot8" type="Button" parent="VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 32
|
||||
theme_override_styles/focus = SubResource("StyleBoxFlat_6u0xs")
|
||||
margin_top = 464.0
|
||||
margin_right = 392.0
|
||||
margin_bottom = 518.0
|
||||
custom_fonts/font = ExtResource( 4 )
|
||||
custom_styles/focus = SubResource( 1 )
|
||||
text = "Slot 8"
|
||||
|
||||
[node name="Back" type="Button" parent="VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 32
|
||||
theme_override_styles/focus = SubResource("StyleBoxFlat_r2qrn")
|
||||
margin_top = 522.0
|
||||
margin_right = 392.0
|
||||
margin_bottom = 576.0
|
||||
custom_fonts/font = ExtResource( 4 )
|
||||
custom_styles/focus = SubResource( 3 )
|
||||
text = "BUTTON_RETURN"
|
||||
|
||||
[connection signal="pressed" from="VBoxContainer/Ram" to="." method="_on_ram_pressed"]
|
||||
[connection signal="pressed" from="VBoxContainer/Slot1" to="." method="_on_slot_1_pressed"]
|
||||
[connection signal="pressed" from="VBoxContainer/Slot2" to="." method="_on_slot_2_pressed"]
|
||||
[connection signal="pressed" from="VBoxContainer/Slot2" to="." method="_on_slot_1_pressed"]
|
||||
[connection signal="pressed" from="VBoxContainer/Slot3" to="." method="_on_slot_3_pressed"]
|
||||
[connection signal="pressed" from="VBoxContainer/Slot4" to="." method="_on_slot_4_pressed"]
|
||||
[connection signal="pressed" from="VBoxContainer/Slot5" to="." method="_on_slot_5_pressed"]
|
||||
[connection signal="pressed" from="VBoxContainer/Slot6" to="." method="_on_slot_6_pressed"]
|
||||
[connection signal="pressed" from="VBoxContainer/Slot7" to="." method="_on_slot_7_pressed"]
|
||||
[connection signal="pressed" from="VBoxContainer/Slot8" to="." method="_on_slot_8_pressed"]
|
||||
[connection signal="pressed" from="VBoxContainer/Slot8" to="." method="_on_slot_1_pressed"]
|
||||
[connection signal="pressed" from="VBoxContainer/Back" to="." method="_on_back_pressed"]
|
||||
|
|
|
@ -55,8 +55,8 @@ func _process(delta):
|
|||
pass
|
||||
|
||||
func _input(event):
|
||||
if Input.is_key_pressed(KEY_ESCAPE) || (Input.is_joy_button_pressed(0,JOY_BUTTON_A) && (Input.is_joy_button_pressed(0,JOY_BUTTON_B))):
|
||||
get_tree().change_scene_to_file("res://levels/ui/debug.tscn")
|
||||
if Input.is_key_pressed(KEY_ESCAPE) || (Input.is_joy_button_pressed(0,JOY_XBOX_A) && (Input.is_joy_button_pressed(0,JOY_XBOX_B))):
|
||||
get_tree().change_scene("res://levels/ui/debug.tscn")
|
||||
gamepadtest.new(event)
|
||||
if Global.gamepad == 1:
|
||||
joyname.set_text("Current Device: "+str(Input.get_joy_name(0))+"\nController Type: Western"+"\nIf drift threshold is 0.2 or higher, your gamepad need new sticks")
|
||||
|
@ -66,23 +66,23 @@ func _input(event):
|
|||
joyname.set_text("Current Device: "+str(Input.get_joy_name(0))+"\nController Type: Geo"+"\nIf drift threshold is 0.2 or higher, your gamepad need new sticks")
|
||||
elif Global.gamepad == 0:
|
||||
joyname.set_text("Current Device: "+str(Input.get_joy_name(0))+"\nController Type: Keyboard"+"\nIf drift threshold is 0.2 or higher, your gamepad need new sticks")
|
||||
lxaxis.set_text("Left X Axis "+str(Input.get_joy_axis(0,JOY_AXIS_LEFT_X)))
|
||||
lyaxis.set_text("Left Y Axis "+str(Input.get_joy_axis(0,JOY_AXIS_LEFT_Y)))
|
||||
rxaxis.set_text("Right X Axis "+str(Input.get_joy_axis(0,JOY_AXIS_RIGHT_X)))
|
||||
ryaxis.set_text("Right Y Axis "+str(Input.get_joy_axis(0,JOY_AXIS_RIGHT_Y)))
|
||||
dpadup.set_text("DPAD Up "+str(Input.is_joy_button_pressed(0,JOY_BUTTON_DPAD_UP)))
|
||||
dpaddown.set_text("DPAD Down "+str(Input.is_joy_button_pressed(0,JOY_BUTTON_DPAD_DOWN)))
|
||||
dpadleft.set_text("DPAD Left "+str(Input.is_joy_button_pressed(0,JOY_BUTTON_DPAD_LEFT)))
|
||||
dpadright.set_text("DPAD Right "+str(Input.is_joy_button_pressed(0,JOY_BUTTON_DPAD_RIGHT)))
|
||||
lt.set_text("Left Trigger "+str(Input.get_joy_axis(0,JOY_AXIS_TRIGGER_LEFT)))
|
||||
rt.set_text("Right Trigger "+str(Input.get_joy_axis(0,JOY_AXIS_TRIGGER_RIGHT)))
|
||||
ls.set_text("Left Shoulder "+str(Input.is_joy_button_pressed(0,JOY_BUTTON_LEFT_SHOULDER)))
|
||||
rs.set_text("Right Shoulder "+str(Input.is_joy_button_pressed(0,JOY_BUTTON_RIGHT_SHOULDER)))
|
||||
l3.set_text("Left Stick "+str(Input.is_joy_button_pressed(0,JOY_BUTTON_LEFT_STICK)))
|
||||
r3.set_text("Right Stick "+str(Input.is_joy_button_pressed(0,JOY_BUTTON_RIGHT_STICK)))
|
||||
view.set_text("View "+str(Input.is_joy_button_pressed(0,JOY_BUTTON_BACK)))
|
||||
menu.set_text("Menu "+str(Input.is_joy_button_pressed(0,JOY_BUTTON_START)))
|
||||
xb.set_text("X "+str(Input.is_joy_button_pressed(0,JOY_BUTTON_X)))
|
||||
yb.set_text("Y "+str(Input.is_joy_button_pressed(0,JOY_BUTTON_Y)))
|
||||
ab.set_text("A "+str(Input.is_joy_button_pressed(0,JOY_BUTTON_A)))
|
||||
bb.set_text("B "+str(Input.is_joy_button_pressed(0,JOY_BUTTON_B)))
|
||||
lxaxis.set_text("Left X Axis "+str(Input.get_joy_axis(0,JOY_ANALOG_LX)))
|
||||
lyaxis.set_text("Left Y Axis "+str(Input.get_joy_axis(0,JOY_ANALOG_LY)))
|
||||
rxaxis.set_text("Right X Axis "+str(Input.get_joy_axis(0,JOY_ANALOG_RX)))
|
||||
ryaxis.set_text("Right Y Axis "+str(Input.get_joy_axis(0,JOY_ANALOG_RY)))
|
||||
dpadup.set_text("DPAD Up "+str(Input.is_joy_button_pressed(0,JOY_DPAD_UP)))
|
||||
dpaddown.set_text("DPAD Down "+str(Input.is_joy_button_pressed(0,JOY_DPAD_DOWN)))
|
||||
dpadleft.set_text("DPAD Left "+str(Input.is_joy_button_pressed(0,JOY_DPAD_LEFT)))
|
||||
dpadright.set_text("DPAD Right "+str(Input.is_joy_button_pressed(0,JOY_DPAD_RIGHT)))
|
||||
lt.set_text("Left Trigger "+str(Input.get_joy_axis(0,JOY_ANALOG_L2)))
|
||||
rt.set_text("Right Trigger "+str(Input.get_joy_axis(0,JOY_ANALOG_R2)))
|
||||
ls.set_text("Left Shoulder "+str(Input.is_joy_button_pressed(0,JOY_L)))
|
||||
rs.set_text("Right Shoulder "+str(Input.is_joy_button_pressed(0,JOY_R)))
|
||||
l3.set_text("Left Stick "+str(Input.is_joy_button_pressed(0,JOY_L3)))
|
||||
r3.set_text("Right Stick "+str(Input.is_joy_button_pressed(0,JOY_R3)))
|
||||
view.set_text("View "+str(Input.is_joy_button_pressed(0,JOY_SELECT)))
|
||||
menu.set_text("Menu "+str(Input.is_joy_button_pressed(0,JOY_START)))
|
||||
xb.set_text("X "+str(Input.is_joy_button_pressed(0,JOY_XBOX_X)))
|
||||
yb.set_text("Y "+str(Input.is_joy_button_pressed(0,JOY_XBOX_Y)))
|
||||
ab.set_text("A "+str(Input.is_joy_button_pressed(0,JOY_XBOX_A)))
|
||||
bb.set_text("B "+str(Input.is_joy_button_pressed(0,JOY_XBOX_B)))
|
||||
|
|
|
@ -1,154 +1,201 @@
|
|||
[gd_scene load_steps=4 format=3 uid="uid://qun4scsrsp00"]
|
||||
[gd_scene load_steps=6 format=2]
|
||||
|
||||
[ext_resource type="Script" path="res://levels/ui/gamepadtest.gd" id="1_w4qrm"]
|
||||
[ext_resource type="Texture2D" uid="uid://bxa27c7gnivwx" path="res://backgounds/night-sky-at-ceres.jpg" id="2_kcf5a"]
|
||||
[ext_resource type="PackedScene" uid="uid://d31udhuuwrajn" path="res://levels/bottomhud.tscn" id="4_88ejd"]
|
||||
[ext_resource path="res://fonts/about.tres" type="DynamicFont" id=1]
|
||||
[ext_resource path="res://fonts/start.tres" type="DynamicFont" id=2]
|
||||
[ext_resource path="res://backgounds/night-sky-at-ceres.jpg" type="Texture" id=3]
|
||||
[ext_resource path="res://levels/ui/gamepadtest.gd" type="Script" id=4]
|
||||
[ext_resource path="res://levels/bottomhud.tscn" type="PackedScene" id=5]
|
||||
|
||||
[node name="Gamepadtest" 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_w4qrm")
|
||||
script = ExtResource( 4 )
|
||||
|
||||
[node name="Night Sky" type="TextureRect" parent="."]
|
||||
layout_mode = 0
|
||||
offset_right = 1280.0
|
||||
offset_bottom = 720.0
|
||||
texture = ExtResource("2_kcf5a")
|
||||
margin_right = 1280.0
|
||||
margin_bottom = 720.0
|
||||
texture = ExtResource( 3 )
|
||||
|
||||
[node name="Label" type="Label" parent="."]
|
||||
layout_mode = 0
|
||||
offset_right = 40.0
|
||||
offset_bottom = 23.0
|
||||
margin_right = 40.0
|
||||
margin_bottom = 14.0
|
||||
custom_fonts/font = ExtResource( 1 )
|
||||
|
||||
[node name="Game name" type="Label" parent="."]
|
||||
layout_mode = 0
|
||||
offset_left = 71.0
|
||||
offset_top = 3.0
|
||||
offset_right = 1209.0
|
||||
offset_bottom = 73.0
|
||||
theme_override_font_sizes/font_size = 40
|
||||
margin_top = 20.0
|
||||
margin_right = 1280.0
|
||||
margin_bottom = 90.0
|
||||
custom_fonts/font = ExtResource( 2 )
|
||||
text = "BUTTON_GAMEPADTEST"
|
||||
horizontal_alignment = 1
|
||||
align = 1
|
||||
valign = 1
|
||||
|
||||
[node name="Info" type="Label" parent="."]
|
||||
layout_mode = 0
|
||||
offset_left = 28.0
|
||||
offset_top = 94.0
|
||||
offset_right = 322.0
|
||||
offset_bottom = 164.0
|
||||
theme_override_font_sizes/font_size = 20
|
||||
margin_left = 28.0
|
||||
margin_top = 94.0
|
||||
margin_right = 322.0
|
||||
margin_bottom = 164.0
|
||||
custom_fonts/font = ExtResource( 1 )
|
||||
|
||||
[node name="Stop" type="Label" parent="."]
|
||||
layout_mode = 0
|
||||
offset_left = 5.0
|
||||
offset_top = 672.0
|
||||
offset_right = 444.0
|
||||
offset_bottom = 708.0
|
||||
theme_override_font_sizes/font_size = 22
|
||||
margin_left = 5.0
|
||||
margin_top = 672.0
|
||||
margin_right = 444.0
|
||||
margin_bottom = 708.0
|
||||
custom_fonts/font = ExtResource( 1 )
|
||||
text = "BUTTON_GAMEPADTEST_DONE"
|
||||
|
||||
[node name="BoxContainer" type="BoxContainer" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 3
|
||||
anchor_left = 1.0
|
||||
anchor_top = 1.0
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_left = -640.0
|
||||
offset_top = -419.0
|
||||
grow_horizontal = 0
|
||||
grow_vertical = 0
|
||||
[node name="BoxContainer" type="HBoxContainer" parent="."]
|
||||
margin_left = 640.0
|
||||
margin_top = 301.0
|
||||
margin_right = 1280.0
|
||||
margin_bottom = 720.0
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="BoxContainer"]
|
||||
layout_mode = 2
|
||||
margin_right = 134.0
|
||||
margin_bottom = 419.0
|
||||
|
||||
[node name="Left X Axis" type="Label" parent="BoxContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
margin_right = 134.0
|
||||
margin_bottom = 24.0
|
||||
custom_fonts/font = ExtResource( 1 )
|
||||
text = "Left X Axis"
|
||||
|
||||
[node name="Left Y Axis" type="Label" parent="BoxContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
margin_top = 28.0
|
||||
margin_right = 134.0
|
||||
margin_bottom = 52.0
|
||||
custom_fonts/font = ExtResource( 1 )
|
||||
text = "Left Y Axis"
|
||||
|
||||
[node name="DPAD Up" type="Label" parent="BoxContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
margin_top = 56.0
|
||||
margin_right = 134.0
|
||||
margin_bottom = 80.0
|
||||
custom_fonts/font = ExtResource( 1 )
|
||||
text = "DPAD Up"
|
||||
|
||||
[node name="DPAD Left" type="Label" parent="BoxContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
margin_top = 84.0
|
||||
margin_right = 134.0
|
||||
margin_bottom = 108.0
|
||||
custom_fonts/font = ExtResource( 1 )
|
||||
text = "DPAD Left"
|
||||
|
||||
[node name="Left Trigger" type="Label" parent="BoxContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
margin_top = 112.0
|
||||
margin_right = 134.0
|
||||
margin_bottom = 136.0
|
||||
custom_fonts/font = ExtResource( 1 )
|
||||
text = "Left Trigger"
|
||||
|
||||
[node name="Left Shoulder" type="Label" parent="BoxContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
margin_top = 140.0
|
||||
margin_right = 134.0
|
||||
margin_bottom = 164.0
|
||||
custom_fonts/font = ExtResource( 1 )
|
||||
text = "Left Shoulder"
|
||||
|
||||
[node name="Left Stick" type="Label" parent="BoxContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
margin_top = 168.0
|
||||
margin_right = 134.0
|
||||
margin_bottom = 192.0
|
||||
custom_fonts/font = ExtResource( 1 )
|
||||
text = "Left Stick"
|
||||
|
||||
[node name="View" type="Label" parent="BoxContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
margin_top = 196.0
|
||||
margin_right = 134.0
|
||||
margin_bottom = 220.0
|
||||
custom_fonts/font = ExtResource( 1 )
|
||||
text = "View"
|
||||
|
||||
[node name="X" type="Label" parent="BoxContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
margin_top = 224.0
|
||||
margin_right = 134.0
|
||||
margin_bottom = 248.0
|
||||
custom_fonts/font = ExtResource( 1 )
|
||||
text = "X"
|
||||
|
||||
[node name="A" type="Label" parent="BoxContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
margin_top = 252.0
|
||||
margin_right = 134.0
|
||||
margin_bottom = 276.0
|
||||
custom_fonts/font = ExtResource( 1 )
|
||||
text = "A"
|
||||
|
||||
[node name="VBoxContainer2" type="VBoxContainer" parent="BoxContainer"]
|
||||
layout_mode = 2
|
||||
margin_left = 138.0
|
||||
margin_right = 288.0
|
||||
margin_bottom = 419.0
|
||||
|
||||
[node name="Right X Axis" type="Label" parent="BoxContainer/VBoxContainer2"]
|
||||
layout_mode = 2
|
||||
margin_right = 150.0
|
||||
margin_bottom = 24.0
|
||||
custom_fonts/font = ExtResource( 1 )
|
||||
text = "Right X Axis"
|
||||
|
||||
[node name="Right Y Axis" type="Label" parent="BoxContainer/VBoxContainer2"]
|
||||
layout_mode = 2
|
||||
margin_top = 28.0
|
||||
margin_right = 150.0
|
||||
margin_bottom = 52.0
|
||||
custom_fonts/font = ExtResource( 1 )
|
||||
text = "Right Y Axis"
|
||||
|
||||
[node name="DPAD Down" type="Label" parent="BoxContainer/VBoxContainer2"]
|
||||
layout_mode = 2
|
||||
text = "DPAD Down
|
||||
"
|
||||
margin_top = 56.0
|
||||
margin_right = 150.0
|
||||
margin_bottom = 80.0
|
||||
custom_fonts/font = ExtResource( 1 )
|
||||
text = "DPAD Down"
|
||||
|
||||
[node name="DPAD Right" type="Label" parent="BoxContainer/VBoxContainer2"]
|
||||
layout_mode = 2
|
||||
margin_top = 84.0
|
||||
margin_right = 150.0
|
||||
margin_bottom = 108.0
|
||||
custom_fonts/font = ExtResource( 1 )
|
||||
text = "DPAD Right"
|
||||
|
||||
[node name="Right Trigger" type="Label" parent="BoxContainer/VBoxContainer2"]
|
||||
layout_mode = 2
|
||||
margin_top = 112.0
|
||||
margin_right = 150.0
|
||||
margin_bottom = 136.0
|
||||
custom_fonts/font = ExtResource( 1 )
|
||||
text = "Right Trigger"
|
||||
|
||||
[node name="Right Shoulder" type="Label" parent="BoxContainer/VBoxContainer2"]
|
||||
layout_mode = 2
|
||||
margin_top = 140.0
|
||||
margin_right = 150.0
|
||||
margin_bottom = 164.0
|
||||
custom_fonts/font = ExtResource( 1 )
|
||||
text = "Right Shoulder"
|
||||
|
||||
[node name="Right Stick" type="Label" parent="BoxContainer/VBoxContainer2"]
|
||||
layout_mode = 2
|
||||
margin_top = 168.0
|
||||
margin_right = 150.0
|
||||
margin_bottom = 192.0
|
||||
custom_fonts/font = ExtResource( 1 )
|
||||
text = "Right Stick"
|
||||
|
||||
[node name="Menu" type="Label" parent="BoxContainer/VBoxContainer2"]
|
||||
layout_mode = 2
|
||||
margin_top = 196.0
|
||||
margin_right = 150.0
|
||||
margin_bottom = 220.0
|
||||
custom_fonts/font = ExtResource( 1 )
|
||||
text = "Menu"
|
||||
|
||||
[node name="Y" type="Label" parent="BoxContainer/VBoxContainer2"]
|
||||
layout_mode = 2
|
||||
margin_top = 224.0
|
||||
margin_right = 150.0
|
||||
margin_bottom = 248.0
|
||||
custom_fonts/font = ExtResource( 1 )
|
||||
text = "Y"
|
||||
|
||||
[node name="B" type="Label" parent="BoxContainer/VBoxContainer2"]
|
||||
layout_mode = 2
|
||||
margin_top = 252.0
|
||||
margin_right = 150.0
|
||||
margin_bottom = 276.0
|
||||
custom_fonts/font = ExtResource( 1 )
|
||||
text = "B"
|
||||
|
||||
[node name="Bottomhud" parent="." instance=ExtResource("4_88ejd")]
|
||||
layout_mode = 1
|
||||
[node name="Bottomhud" parent="." instance=ExtResource( 5 )]
|
||||
|
|
|
@ -6,9 +6,9 @@ var music
|
|||
var bgsound := AudioStreamPlayer.new()
|
||||
var sfx1 := AudioStreamPlayer.new()
|
||||
var musictrack
|
||||
var bhud = load("res://levels/bottomhud.tscn").instantiate()
|
||||
var thud = load("res://levels/ui/tophud.tscn").instantiate()
|
||||
var pmenu = load("res://levels/ui/pause.tscn").instantiate()
|
||||
var bhud = load("res://levels/bottomhud.tscn").instance()
|
||||
var thud = load("res://levels/ui/tophud.tscn").instance()
|
||||
var pmenu = load("res://levels/ui/pause.tscn").instance()
|
||||
var ispaused = false
|
||||
var ishud = true
|
||||
|
||||
|
@ -18,13 +18,13 @@ func _ready():
|
|||
add_child(bgsound)
|
||||
add_child(sfx1)
|
||||
if Global.debug:
|
||||
level = load(Global.places[Global.dplace[0]][Global.dplace[1]][Global.dplace[2]][0]).instantiate()
|
||||
#player = load(Global.pchars[Global.dcpchar]).instantiate()
|
||||
level = load(Global.places[Global.dplace[0]][Global.dplace[1]][Global.dplace[2]][0]).instance()
|
||||
#player = load(Global.pchars[Global.dcpchar]).instance()
|
||||
musictrack = Global.musictracks[Global.places[Global.dplace[0]][Global.dplace[1]][Global.dplace[2]][1]]
|
||||
Global.isboss = Global.places[Global.dplace[0]][Global.dplace[1]][Global.dplace[2]][2]
|
||||
else:
|
||||
level = load(Global.places[Global.cplace[0]][Global.cplace[1]][Global.cplace[2]][0]).instantiate()
|
||||
# player = load(Global.pchars[Global.cpchar]).instantiate()
|
||||
level = load(Global.places[Global.cplace[0]][Global.cplace[1]][Global.cplace[2]][0]).instance()
|
||||
# player = load(Global.pchars[Global.cpchar]).instance()
|
||||
musictrack = Global.musictracks[Global.places[Global.cplace[0]][Global.cplace[1]][Global.cplace[2]][1]]
|
||||
Global.isboss = Global.places[Global.cplace[0]][Global.cplace[1]][Global.cplace[2]][2]
|
||||
#if Global.cspawnarea[0] != null && Global.cspawnarea[0] != null:
|
||||
|
@ -37,15 +37,15 @@ func _ready():
|
|||
# player.position.x = Global.places[Global.cplace[0]][Global.cplace[1]][Global.cplace[2]][1]
|
||||
# player.position.y = Global.places[Global.cplace[0]][Global.cplace[1]][Global.cplace[2]][2]
|
||||
music = load(musictrack)
|
||||
get_tree().root.add_child.call_deferred(level)
|
||||
get_tree().root.add_child.call_deferred(bhud)
|
||||
get_tree().root.add_child.call_deferred(thud)
|
||||
call_deferred("_level")
|
||||
call_deferred("_bhud")
|
||||
call_deferred("_thud")
|
||||
#get_tree().root.add_child.call_deferred(player)
|
||||
bgsound.stream = music
|
||||
bgsound.bus = &"Music"
|
||||
bgsound.bus = "Music"
|
||||
bgsound.mix_target = 1
|
||||
sfx1.mix_target = 1
|
||||
sfx1.bus = &"SFX1"
|
||||
sfx1.bus = "SFX1"
|
||||
Global.wait = Time.get_ticks_msec()
|
||||
if !Global.isboss:
|
||||
bgsound.play(0)
|
||||
|
@ -101,7 +101,7 @@ func _input(event):
|
|||
get_tree().root.remove_child(thud)
|
||||
ishud = false
|
||||
elif Global.live == 1 && !ishud:
|
||||
get_tree().root.add_child.call_deferred(thud)
|
||||
call_deferred("_thud")
|
||||
ishud = true
|
||||
func _statrebase():
|
||||
if Global.debug:
|
||||
|
@ -119,14 +119,14 @@ func _statrebase():
|
|||
func _pausemenu():
|
||||
if Global.live == 1 && !ispaused:
|
||||
get_tree().root.remove_child(bhud)
|
||||
get_tree().root.add_child.call_deferred(pmenu)
|
||||
call_deferred("_pmenu")
|
||||
ispaused = true
|
||||
Global.live = 4
|
||||
elif Global.live == 4 && ispaused:
|
||||
get_tree().root.remove_child(pmenu)
|
||||
get_tree().root.add_child.call_deferred(bhud)
|
||||
call_deferred("_bhud")
|
||||
ispaused = false
|
||||
pmenu = load("res://levels/ui/pause.tscn").instantiate()
|
||||
pmenu = load("res://levels/ui/pause.tscn").instance()
|
||||
Global.live = 1
|
||||
func _exit():
|
||||
Global.cdialog = []
|
||||
|
@ -142,23 +142,35 @@ func _exit():
|
|||
#get_tree().root.remove_child(player)
|
||||
get_tree().root.remove_child(level)
|
||||
if Global.live == 7:
|
||||
get_tree().change_scene_to_file("res://backgounds/result.tscn")
|
||||
get_tree().change_scene("res://backgounds/result.tscn")
|
||||
elif Global.live == 8:
|
||||
get_tree().change_scene_to_file("res://levels/ui/Cutscenes.tscn")
|
||||
get_tree().change_scene("res://levels/ui/Cutscenes.tscn")
|
||||
elif Global.live == 5:
|
||||
Global.result = [0, 0, 0, 0, 0]
|
||||
_statrebase()
|
||||
get_tree().change_scene_to_file("res://backgounds/warp.tscn")
|
||||
get_tree().change_scene("res://backgounds/warp.tscn")
|
||||
elif Global.live == 2:
|
||||
Global.result = [0, 0, 0, 0, 0]
|
||||
_statrebase()
|
||||
get_tree().root.remove_child(thud)
|
||||
get_tree().change_scene_to_file("res://backgounds/gameover.tscn")
|
||||
get_tree().change_scene("res://backgounds/gameover.tscn")
|
||||
elif Global.live == 6:
|
||||
Global.result = [0, 0, 0, 0, 0]
|
||||
if Global.debug:
|
||||
Global.live = 0
|
||||
get_tree().change_scene_to_file("res://levels/ui/scene.tscn")
|
||||
get_tree().change_scene("res://levels/ui/scene.tscn")
|
||||
else:
|
||||
Global.live = 0
|
||||
get_tree().change_scene_to_file("res://title.tscn")
|
||||
get_tree().change_scene("res://title.tscn")
|
||||
|
||||
func _level():
|
||||
get_tree().root.add_child(level)
|
||||
|
||||
func _thud():
|
||||
get_tree().root.add_child(thud)
|
||||
|
||||
func _bhud():
|
||||
get_tree().root.add_child(bhud)
|
||||
|
||||
func _pmenu():
|
||||
get_tree().root.add_child(pmenu)
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[gd_scene load_steps=2 format=3 uid="uid://o4fdhf0tco2h"]
|
||||
[gd_scene load_steps=2 format=2]
|
||||
|
||||
[ext_resource type="Script" path="res://levels/ui/gameplay.gd" id="1_swekd"]
|
||||
[ext_resource path="res://levels/ui/gameplay.gd" type="Script" id=1]
|
||||
|
||||
[node name="Gameplay" type="Node2D"]
|
||||
script = ExtResource("1_swekd")
|
||||
script = ExtResource( 1 )
|
||||
|
|
|
@ -13,7 +13,7 @@ func _process(delta):
|
|||
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")
|
||||
get_tree().change_scene("res://backgounds/disclaimer.tscn")
|
||||
#Global.live = 1
|
||||
#Global.gamelevel = randi() % 3
|
||||
#if Global.gamelevel == 0:
|
||||
|
@ -47,7 +47,7 @@ func _input(event):
|
|||
|
||||
|
||||
func _on_back_pressed():
|
||||
get_tree().change_scene_to_file("res://levels/ui/savefile.tscn")
|
||||
get_tree().change_scene("res://levels/ui/savefile.tscn")
|
||||
|
||||
func _on_slot_1_pressed() -> void:
|
||||
loadgame.new(1)
|
||||
|
|
|
@ -1,116 +1,120 @@
|
|||
[gd_scene load_steps=6 format=3 uid="uid://d0snuhuxkpvba"]
|
||||
[gd_scene load_steps=7 format=2]
|
||||
|
||||
[ext_resource type="Script" path="res://levels/ui/load.gd" id="1_jemxw"]
|
||||
[ext_resource type="Texture2D" uid="uid://bxa27c7gnivwx" path="res://backgounds/night-sky-at-ceres.jpg" id="2_y0r7s"]
|
||||
[ext_resource type="PackedScene" uid="uid://d31udhuuwrajn" path="res://levels/bottomhud.tscn" id="3_ldlpj"]
|
||||
[ext_resource path="res://levels/bottomhud.tscn" type="PackedScene" id=1]
|
||||
[ext_resource path="res://backgounds/night-sky-at-ceres.jpg" type="Texture" id=3]
|
||||
[ext_resource path="res://levels/ui/load.gd" type="Script" id=4]
|
||||
[ext_resource path="res://fonts/start.tres" type="DynamicFont" id=5]
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_anfrg"]
|
||||
bg_color = Color(0, 0.8, 0, 1)
|
||||
[sub_resource type="StyleBoxFlat" id=1]
|
||||
bg_color = Color( 0, 0.8, 0, 1 )
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_r2qrn"]
|
||||
bg_color = Color(0, 0.8, 0, 1)
|
||||
[sub_resource type="StyleBoxFlat" id=3]
|
||||
bg_color = Color( 0, 0.8, 0, 1 )
|
||||
|
||||
[node name="Load" 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_jemxw")
|
||||
script = ExtResource( 4 )
|
||||
|
||||
[node name="Night Sky" type="TextureRect" parent="."]
|
||||
layout_mode = 0
|
||||
offset_right = 1280.0
|
||||
offset_bottom = 720.0
|
||||
texture = ExtResource("2_y0r7s")
|
||||
margin_right = 1280.0
|
||||
margin_bottom = 720.0
|
||||
texture = ExtResource( 3 )
|
||||
|
||||
[node name="Game name" type="Label" parent="."]
|
||||
layout_mode = 0
|
||||
offset_left = 35.0
|
||||
offset_top = 3.0
|
||||
offset_right = 1235.0
|
||||
offset_bottom = 73.0
|
||||
theme_override_font_sizes/font_size = 40
|
||||
margin_top = 3.0
|
||||
margin_right = 1280.0
|
||||
margin_bottom = 73.0
|
||||
custom_fonts/font = ExtResource( 5 )
|
||||
text = "BUTTON_LOAD"
|
||||
horizontal_alignment = 1
|
||||
align = 1
|
||||
valign = 1
|
||||
|
||||
[node name="Bottomhud" parent="." instance=ExtResource("3_ldlpj")]
|
||||
layout_mode = 1
|
||||
[node name="Bottomhud" parent="." instance=ExtResource( 1 )]
|
||||
|
||||
[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 = -139.0
|
||||
offset_top = -395.0
|
||||
offset_right = 139.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 0
|
||||
margin_left = 510.5
|
||||
margin_top = 97.0
|
||||
margin_right = 769.5
|
||||
margin_bottom = 808.0
|
||||
|
||||
[node name="Slot1" type="Button" parent="VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 32
|
||||
theme_override_styles/focus = SubResource("StyleBoxFlat_anfrg")
|
||||
margin_right = 360.0
|
||||
margin_bottom = 54.0
|
||||
custom_fonts/font = ExtResource( 5 )
|
||||
custom_styles/focus = SubResource( 1 )
|
||||
text = "Slot 1"
|
||||
|
||||
[node name="Slot2" type="Button" parent="VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 32
|
||||
theme_override_styles/focus = SubResource("StyleBoxFlat_anfrg")
|
||||
margin_top = 58.0
|
||||
margin_right = 360.0
|
||||
margin_bottom = 112.0
|
||||
custom_fonts/font = ExtResource( 5 )
|
||||
custom_styles/focus = SubResource( 1 )
|
||||
text = "Slot 2"
|
||||
|
||||
[node name="Slot3" type="Button" parent="VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 32
|
||||
theme_override_styles/focus = SubResource("StyleBoxFlat_anfrg")
|
||||
margin_top = 116.0
|
||||
margin_right = 360.0
|
||||
margin_bottom = 170.0
|
||||
custom_fonts/font = ExtResource( 5 )
|
||||
custom_styles/focus = SubResource( 1 )
|
||||
text = "Slot 3"
|
||||
|
||||
[node name="Slot4" type="Button" parent="VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 32
|
||||
theme_override_styles/focus = SubResource("StyleBoxFlat_anfrg")
|
||||
margin_top = 174.0
|
||||
margin_right = 360.0
|
||||
margin_bottom = 228.0
|
||||
custom_fonts/font = ExtResource( 5 )
|
||||
custom_styles/focus = SubResource( 1 )
|
||||
text = "Slot 4"
|
||||
|
||||
[node name="Slot5" type="Button" parent="VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 32
|
||||
theme_override_styles/focus = SubResource("StyleBoxFlat_anfrg")
|
||||
margin_top = 232.0
|
||||
margin_right = 360.0
|
||||
margin_bottom = 286.0
|
||||
custom_fonts/font = ExtResource( 5 )
|
||||
custom_styles/focus = SubResource( 1 )
|
||||
text = "Slot 5"
|
||||
|
||||
[node name="Slot6" type="Button" parent="VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 32
|
||||
theme_override_styles/focus = SubResource("StyleBoxFlat_anfrg")
|
||||
margin_top = 290.0
|
||||
margin_right = 360.0
|
||||
margin_bottom = 344.0
|
||||
custom_fonts/font = ExtResource( 5 )
|
||||
custom_styles/focus = SubResource( 1 )
|
||||
text = "Slot 6"
|
||||
|
||||
[node name="Slot7" type="Button" parent="VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 32
|
||||
theme_override_styles/focus = SubResource("StyleBoxFlat_anfrg")
|
||||
margin_top = 348.0
|
||||
margin_right = 360.0
|
||||
margin_bottom = 402.0
|
||||
custom_fonts/font = ExtResource( 5 )
|
||||
custom_styles/focus = SubResource( 1 )
|
||||
text = "Slot 7"
|
||||
|
||||
[node name="Slot8" type="Button" parent="VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 32
|
||||
theme_override_styles/focus = SubResource("StyleBoxFlat_anfrg")
|
||||
margin_top = 406.0
|
||||
margin_right = 360.0
|
||||
margin_bottom = 460.0
|
||||
custom_fonts/font = ExtResource( 5 )
|
||||
custom_styles/focus = SubResource( 1 )
|
||||
text = "Slot 8"
|
||||
|
||||
[node name="Back" type="Button" parent="VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 32
|
||||
theme_override_styles/focus = SubResource("StyleBoxFlat_r2qrn")
|
||||
margin_top = 464.0
|
||||
margin_right = 360.0
|
||||
margin_bottom = 518.0
|
||||
custom_fonts/font = ExtResource( 5 )
|
||||
custom_styles/focus = SubResource( 3 )
|
||||
text = "BUTTON_RETURN"
|
||||
|
||||
[connection signal="pressed" from="VBoxContainer/Slot1" to="." method="_on_slot_1_pressed"]
|
||||
[connection signal="pressed" from="VBoxContainer/Slot2" to="." method="_on_slot_2_pressed"]
|
||||
[connection signal="pressed" from="VBoxContainer/Slot2" to="." method="_on_slot_1_pressed"]
|
||||
[connection signal="pressed" from="VBoxContainer/Slot3" to="." method="_on_slot_3_pressed"]
|
||||
[connection signal="pressed" from="VBoxContainer/Slot4" to="." method="_on_slot_4_pressed"]
|
||||
[connection signal="pressed" from="VBoxContainer/Slot5" to="." method="_on_slot_5_pressed"]
|
||||
[connection signal="pressed" from="VBoxContainer/Slot6" to="." method="_on_slot_6_pressed"]
|
||||
[connection signal="pressed" from="VBoxContainer/Slot7" to="." method="_on_slot_7_pressed"]
|
||||
[connection signal="pressed" from="VBoxContainer/Slot8" to="." method="_on_slot_8_pressed"]
|
||||
[connection signal="pressed" from="VBoxContainer/Slot8" to="." method="_on_slot_1_pressed"]
|
||||
[connection signal="pressed" from="VBoxContainer/Back" to="." method="_on_back_pressed"]
|
||||
|
|
|
@ -8,7 +8,7 @@ func _ready():
|
|||
#Input.set_mouse_mode(Input.MOUSE_MODE_HIDDEN)
|
||||
add_child(player)
|
||||
player.mix_target = 1
|
||||
player.bus = &"Music"
|
||||
player.bus = "Music"
|
||||
$"BoxContainer/VBoxContainer/Title Screen".grab_focus()
|
||||
infobox = $Info
|
||||
|
||||
|
@ -20,15 +20,15 @@ func _process(delta):
|
|||
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")
|
||||
get_tree().change_scene("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")
|
||||
# get_tree().change_scene("res://backgounds/galaxy.tscn")
|
||||
#elif Global.gamelevel == 1:
|
||||
# get_tree().change_scene_to_file("res://backgounds/wormhole.tscn")
|
||||
# get_tree().change_scene("res://backgounds/wormhole.tscn")
|
||||
#else:
|
||||
# get_tree().change_scene_to_file("res://backgounds/abstract.tscn")
|
||||
# get_tree().change_scene("res://backgounds/abstract.tscn")
|
||||
#get_tree().root.add_child(title)
|
||||
#get_tree().root.remove_child(boot)
|
||||
#boot.queue_free()
|
||||
|
@ -55,7 +55,7 @@ func _input(event):
|
|||
|
||||
|
||||
func _on_back_pressed():
|
||||
get_tree().change_scene_to_file("res://levels/ui/soundtest.tscn")
|
||||
get_tree().change_scene("res://levels/ui/soundtest.tscn")
|
||||
|
||||
|
||||
func _on_title_screen_pressed():
|
||||
|
|
|
@ -1,229 +1,253 @@
|
|||
[gd_scene load_steps=7 format=3 uid="uid://v2cnmd1atfw1"]
|
||||
[gd_scene load_steps=7 format=2]
|
||||
|
||||
[ext_resource type="Script" path="res://levels/ui/musictest.gd" id="1_mulrj"]
|
||||
[ext_resource type="Texture2D" uid="uid://bxa27c7gnivwx" path="res://backgounds/night-sky-at-ceres.jpg" id="2_jgdg2"]
|
||||
[ext_resource type="PackedScene" uid="uid://d31udhuuwrajn" path="res://levels/bottomhud.tscn" id="4_a1ux8"]
|
||||
[ext_resource path="res://fonts/about.tres" type="DynamicFont" id=1]
|
||||
[ext_resource path="res://levels/bottomhud.tscn" type="PackedScene" id=2]
|
||||
[ext_resource path="res://fonts/start.tres" type="DynamicFont" id=3]
|
||||
[ext_resource path="res://backgounds/night-sky-at-ceres.jpg" type="Texture" id=4]
|
||||
[ext_resource path="res://levels/ui/musictest.gd" type="Script" id=5]
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_cprm3"]
|
||||
bg_color = Color(0, 0.8, 0, 1)
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_alctd"]
|
||||
bg_color = Color(0, 0.8, 0, 1)
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_0dqsq"]
|
||||
bg_color = Color(0, 0.8, 0, 1)
|
||||
[sub_resource type="StyleBoxFlat" id=3]
|
||||
bg_color = Color( 0, 0.8, 0, 1 )
|
||||
|
||||
[node name="Musictest" 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_mulrj")
|
||||
script = ExtResource( 5 )
|
||||
|
||||
[node name="Night Sky" type="TextureRect" parent="."]
|
||||
layout_mode = 0
|
||||
offset_right = 1280.0
|
||||
offset_bottom = 720.0
|
||||
texture = ExtResource("2_jgdg2")
|
||||
|
||||
[node name="Label" type="Label" parent="."]
|
||||
layout_mode = 0
|
||||
offset_right = 40.0
|
||||
offset_bottom = 23.0
|
||||
|
||||
[node name="Game name" type="Label" parent="."]
|
||||
layout_mode = 0
|
||||
offset_left = 57.0
|
||||
offset_top = 3.0
|
||||
offset_right = 1229.0
|
||||
offset_bottom = 73.0
|
||||
theme_override_font_sizes/font_size = 40
|
||||
text = "MENU_MUSICTEST"
|
||||
horizontal_alignment = 1
|
||||
margin_right = 1280.0
|
||||
margin_bottom = 720.0
|
||||
texture = ExtResource( 4 )
|
||||
|
||||
[node name="Info" type="Label" parent="."]
|
||||
layout_mode = 0
|
||||
offset_left = 28.0
|
||||
offset_top = 94.0
|
||||
offset_right = 322.0
|
||||
offset_bottom = 164.0
|
||||
theme_override_font_sizes/font_size = 20
|
||||
margin_left = 28.0
|
||||
margin_top = 94.0
|
||||
margin_right = 322.0
|
||||
margin_bottom = 164.0
|
||||
custom_fonts/font = ExtResource( 1 )
|
||||
|
||||
[node name="Game name" type="Label" parent="."]
|
||||
margin_top = 3.0
|
||||
margin_right = 1280.0
|
||||
margin_bottom = 73.0
|
||||
custom_fonts/font = ExtResource( 3 )
|
||||
text = "MENU_MUSICTEST"
|
||||
align = 1
|
||||
valign = 1
|
||||
|
||||
[node name="Stop" type="Label" parent="."]
|
||||
layout_mode = 0
|
||||
offset_left = 5.0
|
||||
offset_top = 672.0
|
||||
offset_right = 444.0
|
||||
offset_bottom = 708.0
|
||||
theme_override_font_sizes/font_size = 22
|
||||
margin_left = 5.0
|
||||
margin_top = 672.0
|
||||
margin_right = 230.0
|
||||
margin_bottom = 700.0
|
||||
custom_fonts/font = ExtResource( 1 )
|
||||
text = "LABEL_STOPPLAYBACK"
|
||||
|
||||
[node name="Bottomhud" parent="." instance=ExtResource("4_a1ux8")]
|
||||
layout_mode = 1
|
||||
[node name="Bottomhud" parent="." instance=ExtResource( 2 )]
|
||||
|
||||
[node name="BoxContainer" type="BoxContainer" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 3
|
||||
anchor_left = 1.0
|
||||
anchor_top = 1.0
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_left = -640.0
|
||||
offset_top = -582.0
|
||||
offset_bottom = -69.0
|
||||
grow_horizontal = 0
|
||||
grow_vertical = 0
|
||||
[node name="BoxContainer" type="HBoxContainer" parent="."]
|
||||
margin_left = 640.0
|
||||
margin_top = 91.0
|
||||
margin_right = 1280.0
|
||||
margin_bottom = 651.0
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="BoxContainer"]
|
||||
layout_mode = 2
|
||||
margin_right = 171.0
|
||||
margin_bottom = 560.0
|
||||
|
||||
[node name="Title Screen" type="Button" parent="BoxContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 25
|
||||
theme_override_styles/focus = SubResource("StyleBoxFlat_cprm3")
|
||||
margin_right = 171.0
|
||||
margin_bottom = 30.0
|
||||
custom_fonts/font = ExtResource( 1 )
|
||||
custom_styles/focus = SubResource( 3 )
|
||||
text = "SONG0_LABEL"
|
||||
|
||||
[node name="Disclaimer, Settings, Stores" type="Button" parent="BoxContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 25
|
||||
theme_override_styles/focus = SubResource("StyleBoxFlat_cprm3")
|
||||
margin_top = 34.0
|
||||
margin_right = 171.0
|
||||
margin_bottom = 64.0
|
||||
custom_fonts/font = ExtResource( 1 )
|
||||
custom_styles/focus = SubResource( 3 )
|
||||
text = "SONG1_LABEL"
|
||||
|
||||
[node name="Testrooms" type="Button" parent="BoxContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 25
|
||||
theme_override_styles/focus = SubResource("StyleBoxFlat_alctd")
|
||||
margin_top = 68.0
|
||||
margin_right = 171.0
|
||||
margin_bottom = 98.0
|
||||
custom_fonts/font = ExtResource( 1 )
|
||||
custom_styles/focus = SubResource( 3 )
|
||||
text = "SONG2_LABEL"
|
||||
|
||||
[node name="Friendly challenge" type="Button" parent="BoxContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 25
|
||||
theme_override_styles/focus = SubResource("StyleBoxFlat_alctd")
|
||||
margin_top = 102.0
|
||||
margin_right = 171.0
|
||||
margin_bottom = 132.0
|
||||
custom_fonts/font = ExtResource( 1 )
|
||||
custom_styles/focus = SubResource( 3 )
|
||||
text = "SONG3_LABEL"
|
||||
|
||||
[node name="School nursery" type="Button" parent="BoxContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 25
|
||||
theme_override_styles/focus = SubResource("StyleBoxFlat_alctd")
|
||||
margin_top = 136.0
|
||||
margin_right = 171.0
|
||||
margin_bottom = 166.0
|
||||
custom_fonts/font = ExtResource( 1 )
|
||||
custom_styles/focus = SubResource( 3 )
|
||||
text = "SONG4_LABEL"
|
||||
|
||||
[node name="Overworld (Ceres)" type="Button" parent="BoxContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 25
|
||||
theme_override_styles/focus = SubResource("StyleBoxFlat_alctd")
|
||||
margin_top = 170.0
|
||||
margin_right = 171.0
|
||||
margin_bottom = 200.0
|
||||
custom_fonts/font = ExtResource( 1 )
|
||||
custom_styles/focus = SubResource( 3 )
|
||||
text = "SONG5_LABEL"
|
||||
|
||||
[node name="Boss fight (Ceres)" type="Button" parent="BoxContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 25
|
||||
theme_override_styles/focus = SubResource("StyleBoxFlat_alctd")
|
||||
margin_top = 204.0
|
||||
margin_right = 171.0
|
||||
margin_bottom = 234.0
|
||||
custom_fonts/font = ExtResource( 1 )
|
||||
custom_styles/focus = SubResource( 3 )
|
||||
text = "SONG6_LABEL"
|
||||
|
||||
[node name="Result" type="Button" parent="BoxContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 25
|
||||
theme_override_styles/focus = SubResource("StyleBoxFlat_alctd")
|
||||
margin_top = 238.0
|
||||
margin_right = 171.0
|
||||
margin_bottom = 268.0
|
||||
custom_fonts/font = ExtResource( 1 )
|
||||
custom_styles/focus = SubResource( 3 )
|
||||
text = "SONG7_LABEL"
|
||||
|
||||
[node name="Overworld (Earth)" type="Button" parent="BoxContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 25
|
||||
theme_override_styles/focus = SubResource("StyleBoxFlat_alctd")
|
||||
margin_top = 272.0
|
||||
margin_right = 171.0
|
||||
margin_bottom = 302.0
|
||||
custom_fonts/font = ExtResource( 1 )
|
||||
custom_styles/focus = SubResource( 3 )
|
||||
text = "SONG8_LABEL"
|
||||
|
||||
[node name="The Zubmarine Zone" type="Button" parent="BoxContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 25
|
||||
theme_override_styles/focus = SubResource("StyleBoxFlat_alctd")
|
||||
margin_top = 306.0
|
||||
margin_right = 171.0
|
||||
margin_bottom = 336.0
|
||||
custom_fonts/font = ExtResource( 1 )
|
||||
custom_styles/focus = SubResource( 3 )
|
||||
text = "SONG9_LABEL"
|
||||
|
||||
[node name="Radioactive Desert" type="Button" parent="BoxContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 25
|
||||
theme_override_styles/focus = SubResource("StyleBoxFlat_alctd")
|
||||
margin_top = 340.0
|
||||
margin_right = 171.0
|
||||
margin_bottom = 370.0
|
||||
custom_fonts/font = ExtResource( 1 )
|
||||
custom_styles/focus = SubResource( 3 )
|
||||
text = "SONG10_LABEL"
|
||||
|
||||
[node name="Natasha’s Theme" type="Button" parent="BoxContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 25
|
||||
theme_override_styles/focus = SubResource("StyleBoxFlat_alctd")
|
||||
margin_top = 374.0
|
||||
margin_right = 171.0
|
||||
margin_bottom = 404.0
|
||||
custom_fonts/font = ExtResource( 1 )
|
||||
custom_styles/focus = SubResource( 3 )
|
||||
text = "SONG11_LABEL"
|
||||
|
||||
[node name="VBoxContainer2" type="VBoxContainer" parent="BoxContainer"]
|
||||
layout_mode = 2
|
||||
margin_left = 175.0
|
||||
margin_right = 364.0
|
||||
margin_bottom = 560.0
|
||||
|
||||
[node name="Dungeon of Destruction" type="Button" parent="BoxContainer/VBoxContainer2"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 25
|
||||
theme_override_styles/focus = SubResource("StyleBoxFlat_alctd")
|
||||
margin_right = 189.0
|
||||
margin_bottom = 30.0
|
||||
custom_fonts/font = ExtResource( 1 )
|
||||
custom_styles/focus = SubResource( 3 )
|
||||
text = "SONG12_LABEL"
|
||||
|
||||
[node name="Final Boss Fight" type="Button" parent="BoxContainer/VBoxContainer2"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 25
|
||||
theme_override_styles/focus = SubResource("StyleBoxFlat_alctd")
|
||||
margin_top = 34.0
|
||||
margin_right = 189.0
|
||||
margin_bottom = 64.0
|
||||
custom_fonts/font = ExtResource( 1 )
|
||||
custom_styles/focus = SubResource( 3 )
|
||||
text = "SONG13_LABEL"
|
||||
|
||||
[node name="Ending Theme" type="Button" parent="BoxContainer/VBoxContainer2"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 25
|
||||
theme_override_styles/focus = SubResource("StyleBoxFlat_alctd")
|
||||
margin_top = 68.0
|
||||
margin_right = 189.0
|
||||
margin_bottom = 98.0
|
||||
custom_fonts/font = ExtResource( 1 )
|
||||
custom_styles/focus = SubResource( 3 )
|
||||
text = "SONG14_LABEL"
|
||||
|
||||
[node name="Credits 1" type="Button" parent="BoxContainer/VBoxContainer2"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 25
|
||||
theme_override_styles/focus = SubResource("StyleBoxFlat_alctd")
|
||||
margin_top = 102.0
|
||||
margin_right = 189.0
|
||||
margin_bottom = 132.0
|
||||
custom_fonts/font = ExtResource( 1 )
|
||||
custom_styles/focus = SubResource( 3 )
|
||||
text = "SONG15_LABEL"
|
||||
|
||||
[node name="Credits 2" type="Button" parent="BoxContainer/VBoxContainer2"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 25
|
||||
theme_override_styles/focus = SubResource("StyleBoxFlat_alctd")
|
||||
margin_top = 136.0
|
||||
margin_right = 189.0
|
||||
margin_bottom = 166.0
|
||||
custom_fonts/font = ExtResource( 1 )
|
||||
custom_styles/focus = SubResource( 3 )
|
||||
text = "SONG16_LABEL"
|
||||
|
||||
[node name="Credits 3" type="Button" parent="BoxContainer/VBoxContainer2"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 25
|
||||
theme_override_styles/focus = SubResource("StyleBoxFlat_alctd")
|
||||
margin_top = 170.0
|
||||
margin_right = 189.0
|
||||
margin_bottom = 200.0
|
||||
custom_fonts/font = ExtResource( 1 )
|
||||
custom_styles/focus = SubResource( 3 )
|
||||
text = "SONG17_LABEL"
|
||||
|
||||
[node name="The Magic School" type="Button" parent="BoxContainer/VBoxContainer2"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 25
|
||||
theme_override_styles/focus = SubResource("StyleBoxFlat_alctd")
|
||||
margin_top = 204.0
|
||||
margin_right = 189.0
|
||||
margin_bottom = 234.0
|
||||
custom_fonts/font = ExtResource( 1 )
|
||||
custom_styles/focus = SubResource( 3 )
|
||||
text = "SONG18_LABEL"
|
||||
|
||||
[node name="Deep Forest" type="Button" parent="BoxContainer/VBoxContainer2"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 25
|
||||
theme_override_styles/focus = SubResource("StyleBoxFlat_alctd")
|
||||
margin_top = 238.0
|
||||
margin_right = 189.0
|
||||
margin_bottom = 268.0
|
||||
custom_fonts/font = ExtResource( 1 )
|
||||
custom_styles/focus = SubResource( 3 )
|
||||
text = "SONG19_LABEL"
|
||||
|
||||
[node name="Boss Fight (Earth)" type="Button" parent="BoxContainer/VBoxContainer2"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 25
|
||||
theme_override_styles/focus = SubResource("StyleBoxFlat_alctd")
|
||||
margin_top = 272.0
|
||||
margin_right = 189.0
|
||||
margin_bottom = 302.0
|
||||
custom_fonts/font = ExtResource( 1 )
|
||||
custom_styles/focus = SubResource( 3 )
|
||||
text = "SONG20_LABEL"
|
||||
|
||||
[node name="ALSA" type="Button" parent="BoxContainer/VBoxContainer2"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 25
|
||||
theme_override_styles/focus = SubResource("StyleBoxFlat_alctd")
|
||||
margin_top = 306.0
|
||||
margin_right = 189.0
|
||||
margin_bottom = 336.0
|
||||
custom_fonts/font = ExtResource( 1 )
|
||||
custom_styles/focus = SubResource( 3 )
|
||||
text = "SONG21_LABEL"
|
||||
|
||||
[node name="Elysium" type="Button" parent="BoxContainer/VBoxContainer2"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 25
|
||||
theme_override_styles/focus = SubResource("StyleBoxFlat_alctd")
|
||||
margin_top = 340.0
|
||||
margin_right = 189.0
|
||||
margin_bottom = 370.0
|
||||
custom_fonts/font = ExtResource( 1 )
|
||||
custom_styles/focus = SubResource( 3 )
|
||||
text = "SONG22_LABEL"
|
||||
|
||||
[node name="Back" type="Button" parent="BoxContainer/VBoxContainer2"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 25
|
||||
theme_override_styles/focus = SubResource("StyleBoxFlat_0dqsq")
|
||||
margin_top = 374.0
|
||||
margin_right = 189.0
|
||||
margin_bottom = 404.0
|
||||
custom_fonts/font = ExtResource( 1 )
|
||||
custom_styles/focus = SubResource( 3 )
|
||||
text = "BUTTON_RETURN"
|
||||
|
||||
[connection signal="pressed" from="BoxContainer/VBoxContainer/Title Screen" to="." method="_on_title_screen_pressed"]
|
||||
|
|
|
@ -1,145 +1,5 @@
|
|||
[gd_scene load_steps=4 format=3 uid="uid://5ilscynpg61o"]
|
||||
|
||||
[ext_resource type="Script" path="res://levels/ui/pause.gd" id="1_x3t1h"]
|
||||
[ext_resource type="PackedScene" uid="uid://d31udhuuwrajn" path="res://levels/bottomhud.tscn" id="2_jnb0v"]
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_yb7nc"]
|
||||
bg_color = Color(0, 0.8, 0, 1)
|
||||
[gd_scene format=2]
|
||||
|
||||
[node name="Pause" 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_x3t1h")
|
||||
|
||||
[node name="CanvasLayer" type="CanvasLayer" parent="."]
|
||||
|
||||
[node name="ColorRect" type="ColorRect" parent="CanvasLayer"]
|
||||
custom_minimum_size = Vector2(1280, 720)
|
||||
offset_right = 1280.0
|
||||
offset_bottom = 720.0
|
||||
color = Color(0, 0, 0, 1)
|
||||
|
||||
[node name="Bottomhud" parent="CanvasLayer" instance=ExtResource("2_jnb0v")]
|
||||
|
||||
[node name="HBoxContainer" type="HBoxContainer" parent="CanvasLayer"]
|
||||
layout_direction = 3
|
||||
offset_right = 40.0
|
||||
offset_bottom = 40.0
|
||||
|
||||
[node name="TextureRect" type="TextureRect" parent="CanvasLayer/HBoxContainer"]
|
||||
custom_minimum_size = Vector2(116, 116)
|
||||
layout_mode = 2
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="CanvasLayer/HBoxContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="Cname" type="Label" parent="CanvasLayer/HBoxContainer/VBoxContainer"]
|
||||
custom_minimum_size = Vector2(174, 0)
|
||||
layout_mode = 2
|
||||
text = "Name"
|
||||
|
||||
[node name="HBoxContainer" type="HBoxContainer" parent="CanvasLayer/HBoxContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="Label" type="Label" parent="CanvasLayer/HBoxContainer/VBoxContainer/HBoxContainer"]
|
||||
custom_minimum_size = Vector2(70, 0)
|
||||
layout_mode = 2
|
||||
text = "Health"
|
||||
|
||||
[node name="Label2" type="Label" parent="CanvasLayer/HBoxContainer/VBoxContainer/HBoxContainer"]
|
||||
custom_minimum_size = Vector2(123, 0)
|
||||
layout_mode = 2
|
||||
text = "100/100"
|
||||
horizontal_alignment = 2
|
||||
|
||||
[node name="HBoxContainer2" type="HBoxContainer" parent="CanvasLayer/HBoxContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="Label" type="Label" parent="CanvasLayer/HBoxContainer/VBoxContainer/HBoxContainer2"]
|
||||
custom_minimum_size = Vector2(70, 0)
|
||||
layout_mode = 2
|
||||
text = "Level"
|
||||
|
||||
[node name="Label2" type="Label" parent="CanvasLayer/HBoxContainer/VBoxContainer/HBoxContainer2"]
|
||||
custom_minimum_size = Vector2(123, 0)
|
||||
layout_mode = 2
|
||||
text = "99"
|
||||
horizontal_alignment = 2
|
||||
|
||||
[node name="HBoxContainer2" type="HBoxContainer" parent="CanvasLayer"]
|
||||
anchors_preset = 5
|
||||
anchor_left = 0.5
|
||||
anchor_right = 0.5
|
||||
offset_left = -264.0
|
||||
offset_top = 133.0
|
||||
offset_right = 264.0
|
||||
offset_bottom = 357.0
|
||||
grow_horizontal = 2
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="CanvasLayer/HBoxContainer2"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="Character" type="Button" parent="CanvasLayer/HBoxContainer2/VBoxContainer"]
|
||||
visible = false
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 32
|
||||
theme_override_styles/focus = SubResource("StyleBoxFlat_yb7nc")
|
||||
text = "MENU_CHARACTER"
|
||||
|
||||
[node name="Team" type="Button" parent="CanvasLayer/HBoxContainer2/VBoxContainer"]
|
||||
visible = false
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 32
|
||||
theme_override_styles/focus = SubResource("StyleBoxFlat_yb7nc")
|
||||
text = "MENU_TEAM"
|
||||
|
||||
[node name="Warp" type="Button" parent="CanvasLayer/HBoxContainer2/VBoxContainer"]
|
||||
visible = false
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 32
|
||||
theme_override_styles/focus = SubResource("StyleBoxFlat_yb7nc")
|
||||
text = "MENU_MAP"
|
||||
|
||||
[node name="Settings" type="Button" parent="CanvasLayer/HBoxContainer2/VBoxContainer"]
|
||||
visible = false
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 32
|
||||
theme_override_styles/focus = SubResource("StyleBoxFlat_yb7nc")
|
||||
text = "MENU_SETTINGS"
|
||||
|
||||
[node name="VBoxContainer2" type="VBoxContainer" parent="CanvasLayer/HBoxContainer2"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="Journal" type="Button" parent="CanvasLayer/HBoxContainer2/VBoxContainer2"]
|
||||
visible = false
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 32
|
||||
theme_override_styles/focus = SubResource("StyleBoxFlat_yb7nc")
|
||||
text = "MENU_BOUKEN"
|
||||
|
||||
[node name="Challenges" type="Button" parent="CanvasLayer/HBoxContainer2/VBoxContainer2"]
|
||||
visible = false
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 32
|
||||
theme_override_styles/focus = SubResource("StyleBoxFlat_yb7nc")
|
||||
text = "MENU_CHALLENGES"
|
||||
|
||||
[node name="Backpack" type="Button" parent="CanvasLayer/HBoxContainer2/VBoxContainer2"]
|
||||
visible = false
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 32
|
||||
theme_override_styles/focus = SubResource("StyleBoxFlat_yb7nc")
|
||||
text = "MENU_BACKPACK"
|
||||
|
||||
[node name="Exit" type="Button" parent="CanvasLayer/HBoxContainer2/VBoxContainer2"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 32
|
||||
theme_override_styles/focus = SubResource("StyleBoxFlat_yb7nc")
|
||||
text = "MENU_EXIT"
|
||||
|
||||
[connection signal="pressed" from="CanvasLayer/HBoxContainer2/VBoxContainer/Warp" to="." method="_on_warp_pressed"]
|
||||
[connection signal="pressed" from="CanvasLayer/HBoxContainer2/VBoxContainer2/Exit" to="." method="_on_exit_pressed"]
|
||||
|
|
|
@ -8,4 +8,4 @@ func _process(delta):
|
|||
#20*623/633=19.6840442338
|
||||
#Roll velocity calculator
|
||||
#(14.0866856839 * music duration (seconds)) / Line count
|
||||
position.y -= delta * 150
|
||||
set_position(get_position() - Vector2(0, delta * 150))
|
||||
|
|
|
@ -13,7 +13,7 @@ func _process(delta):
|
|||
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")
|
||||
get_tree().change_scene("res://backgounds/disclaimer.tscn")
|
||||
#Global.live = 1
|
||||
#Global.gamelevel = randi() % 3
|
||||
#if Global.gamelevel == 0:
|
||||
|
@ -47,7 +47,7 @@ func _input(event):
|
|||
|
||||
|
||||
func _on_back_pressed():
|
||||
get_tree().change_scene_to_file("res://levels/ui/savefile.tscn")
|
||||
get_tree().change_scene("res://levels/ui/savefile.tscn")
|
||||
|
||||
func _on_slot_1_pressed() -> void:
|
||||
savegame.new(1, false)
|
||||
|
|
|
@ -1,116 +1,120 @@
|
|||
[gd_scene load_steps=6 format=3 uid="uid://bbohrt1bhjiac"]
|
||||
[gd_scene load_steps=7 format=2]
|
||||
|
||||
[ext_resource type="Script" path="res://levels/ui/save.gd" id="1_qm2cb"]
|
||||
[ext_resource type="Texture2D" uid="uid://bxa27c7gnivwx" path="res://backgounds/night-sky-at-ceres.jpg" id="2_r4a1h"]
|
||||
[ext_resource type="PackedScene" uid="uid://d31udhuuwrajn" path="res://levels/bottomhud.tscn" id="3_waqiq"]
|
||||
[ext_resource path="res://levels/ui/save.gd" type="Script" id=1]
|
||||
[ext_resource path="res://backgounds/night-sky-at-ceres.jpg" type="Texture" id=2]
|
||||
[ext_resource path="res://levels/bottomhud.tscn" type="PackedScene" id=3]
|
||||
[ext_resource path="res://fonts/start.tres" type="DynamicFont" id=4]
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_lcmit"]
|
||||
bg_color = Color(0, 0.8, 0, 1)
|
||||
[sub_resource type="StyleBoxFlat" id=1]
|
||||
bg_color = Color( 0, 0.8, 0, 1 )
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_r2qrn"]
|
||||
bg_color = Color(0, 0.8, 0, 1)
|
||||
[sub_resource type="StyleBoxFlat" id=3]
|
||||
bg_color = Color( 0, 0.8, 0, 1 )
|
||||
|
||||
[node name="Save" 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_qm2cb")
|
||||
script = ExtResource( 1 )
|
||||
|
||||
[node name="Night Sky" type="TextureRect" parent="."]
|
||||
layout_mode = 0
|
||||
offset_right = 1280.0
|
||||
offset_bottom = 720.0
|
||||
texture = ExtResource("2_r4a1h")
|
||||
margin_right = 1280.0
|
||||
margin_bottom = 720.0
|
||||
texture = ExtResource( 2 )
|
||||
|
||||
[node name="Game name" type="Label" parent="."]
|
||||
layout_mode = 0
|
||||
offset_left = 35.0
|
||||
offset_top = 3.0
|
||||
offset_right = 1235.0
|
||||
offset_bottom = 73.0
|
||||
theme_override_font_sizes/font_size = 40
|
||||
margin_top = 3.0
|
||||
margin_right = 1280.0
|
||||
margin_bottom = 73.0
|
||||
custom_fonts/font = ExtResource( 4 )
|
||||
text = "BUTTON_SAVE"
|
||||
horizontal_alignment = 1
|
||||
align = 1
|
||||
valign = 1
|
||||
|
||||
[node name="Bottomhud" parent="." instance=ExtResource("3_waqiq")]
|
||||
layout_mode = 1
|
||||
[node name="Bottomhud" parent="." instance=ExtResource( 3 )]
|
||||
|
||||
[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 = -139.0
|
||||
offset_top = -395.0
|
||||
offset_right = 139.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 0
|
||||
margin_left = 510.5
|
||||
margin_top = 97.0
|
||||
margin_right = 769.5
|
||||
margin_bottom = 808.0
|
||||
|
||||
[node name="Slot1" type="Button" parent="VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 32
|
||||
theme_override_styles/focus = SubResource("StyleBoxFlat_lcmit")
|
||||
margin_right = 360.0
|
||||
margin_bottom = 54.0
|
||||
custom_fonts/font = ExtResource( 4 )
|
||||
custom_styles/focus = SubResource( 1 )
|
||||
text = "Slot 1"
|
||||
|
||||
[node name="Slot2" type="Button" parent="VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 32
|
||||
theme_override_styles/focus = SubResource("StyleBoxFlat_lcmit")
|
||||
margin_top = 58.0
|
||||
margin_right = 360.0
|
||||
margin_bottom = 112.0
|
||||
custom_fonts/font = ExtResource( 4 )
|
||||
custom_styles/focus = SubResource( 1 )
|
||||
text = "Slot 2"
|
||||
|
||||
[node name="Slot3" type="Button" parent="VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 32
|
||||
theme_override_styles/focus = SubResource("StyleBoxFlat_lcmit")
|
||||
margin_top = 116.0
|
||||
margin_right = 360.0
|
||||
margin_bottom = 170.0
|
||||
custom_fonts/font = ExtResource( 4 )
|
||||
custom_styles/focus = SubResource( 1 )
|
||||
text = "Slot 3"
|
||||
|
||||
[node name="Slot4" type="Button" parent="VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 32
|
||||
theme_override_styles/focus = SubResource("StyleBoxFlat_lcmit")
|
||||
margin_top = 174.0
|
||||
margin_right = 360.0
|
||||
margin_bottom = 228.0
|
||||
custom_fonts/font = ExtResource( 4 )
|
||||
custom_styles/focus = SubResource( 1 )
|
||||
text = "Slot 4"
|
||||
|
||||
[node name="Slot5" type="Button" parent="VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 32
|
||||
theme_override_styles/focus = SubResource("StyleBoxFlat_lcmit")
|
||||
margin_top = 232.0
|
||||
margin_right = 360.0
|
||||
margin_bottom = 286.0
|
||||
custom_fonts/font = ExtResource( 4 )
|
||||
custom_styles/focus = SubResource( 1 )
|
||||
text = "Slot 5"
|
||||
|
||||
[node name="Slot6" type="Button" parent="VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 32
|
||||
theme_override_styles/focus = SubResource("StyleBoxFlat_lcmit")
|
||||
margin_top = 290.0
|
||||
margin_right = 360.0
|
||||
margin_bottom = 344.0
|
||||
custom_fonts/font = ExtResource( 4 )
|
||||
custom_styles/focus = SubResource( 1 )
|
||||
text = "Slot 6"
|
||||
|
||||
[node name="Slot7" type="Button" parent="VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 32
|
||||
theme_override_styles/focus = SubResource("StyleBoxFlat_lcmit")
|
||||
margin_top = 348.0
|
||||
margin_right = 360.0
|
||||
margin_bottom = 402.0
|
||||
custom_fonts/font = ExtResource( 4 )
|
||||
custom_styles/focus = SubResource( 1 )
|
||||
text = "Slot 7"
|
||||
|
||||
[node name="Slot8" type="Button" parent="VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 32
|
||||
theme_override_styles/focus = SubResource("StyleBoxFlat_lcmit")
|
||||
margin_top = 406.0
|
||||
margin_right = 360.0
|
||||
margin_bottom = 460.0
|
||||
custom_fonts/font = ExtResource( 4 )
|
||||
custom_styles/focus = SubResource( 1 )
|
||||
text = "Slot 8"
|
||||
|
||||
[node name="Back" type="Button" parent="VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 32
|
||||
theme_override_styles/focus = SubResource("StyleBoxFlat_r2qrn")
|
||||
margin_top = 464.0
|
||||
margin_right = 360.0
|
||||
margin_bottom = 518.0
|
||||
custom_fonts/font = ExtResource( 4 )
|
||||
custom_styles/focus = SubResource( 3 )
|
||||
text = "BUTTON_RETURN"
|
||||
|
||||
[connection signal="pressed" from="VBoxContainer/Slot1" to="." method="_on_slot_1_pressed"]
|
||||
[connection signal="pressed" from="VBoxContainer/Slot2" to="." method="_on_slot_2_pressed"]
|
||||
[connection signal="pressed" from="VBoxContainer/Slot2" to="." method="_on_slot_1_pressed"]
|
||||
[connection signal="pressed" from="VBoxContainer/Slot3" to="." method="_on_slot_3_pressed"]
|
||||
[connection signal="pressed" from="VBoxContainer/Slot4" to="." method="_on_slot_4_pressed"]
|
||||
[connection signal="pressed" from="VBoxContainer/Slot5" to="." method="_on_slot_5_pressed"]
|
||||
[connection signal="pressed" from="VBoxContainer/Slot6" to="." method="_on_slot_6_pressed"]
|
||||
[connection signal="pressed" from="VBoxContainer/Slot7" to="." method="_on_slot_7_pressed"]
|
||||
[connection signal="pressed" from="VBoxContainer/Slot8" to="." method="_on_slot_8_pressed"]
|
||||
[connection signal="pressed" from="VBoxContainer/Slot8" to="." method="_on_slot_1_pressed"]
|
||||
[connection signal="pressed" from="VBoxContainer/Back" to="." method="_on_back_pressed"]
|
||||
|
|
|
@ -13,15 +13,15 @@ func _process(delta):
|
|||
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/wip.tscn")
|
||||
get_tree().change_scene("res://backgounds/wip.tscn")
|
||||
#Global.live = 1
|
||||
#Global.gamelevel = randi() % 3
|
||||
#if Global.gamelevel == 0:
|
||||
# get_tree().change_scene_to_file("res://backgounds/galaxy.tscn")
|
||||
# get_tree().change_scene("res://backgounds/galaxy.tscn")
|
||||
#elif Global.gamelevel == 1:
|
||||
# get_tree().change_scene_to_file("res://backgounds/wormhole.tscn")
|
||||
# get_tree().change_scene("res://backgounds/wormhole.tscn")
|
||||
#else:
|
||||
# get_tree().change_scene_to_file("res://backgounds/abstract.tscn")
|
||||
# get_tree().change_scene("res://backgounds/abstract.tscn")
|
||||
#get_tree().root.add_child(title)
|
||||
#get_tree().root.remove_child(boot)
|
||||
#boot.queue_free()
|
||||
|
@ -45,16 +45,16 @@ func _input(event):
|
|||
|
||||
|
||||
func _on_load_pressed() -> void:
|
||||
get_tree().change_scene_to_file("res://levels/ui/load.tscn")
|
||||
get_tree().change_scene("res://levels/ui/load.tscn")
|
||||
|
||||
|
||||
func _on_save_pressed() -> void:
|
||||
get_tree().change_scene_to_file("res://levels/ui/save.tscn")
|
||||
get_tree().change_scene("res://levels/ui/save.tscn")
|
||||
|
||||
|
||||
func _on_erase_pressed() -> void:
|
||||
get_tree().change_scene_to_file("res://levels/ui/erase.tscn")
|
||||
get_tree().change_scene("res://levels/ui/erase.tscn")
|
||||
|
||||
|
||||
func _on_back_pressed() -> void:
|
||||
get_tree().change_scene_to_file("res://levels/ui/settings.tscn")
|
||||
get_tree().change_scene("res://levels/ui/settings.tscn")
|
||||
|
|
|
@ -1,81 +1,76 @@
|
|||
[gd_scene load_steps=7 format=3 uid="uid://dxegyw736dnig"]
|
||||
[gd_scene load_steps=9 format=2]
|
||||
|
||||
[ext_resource type="Script" path="res://levels/ui/savefile.gd" id="1_6r0p0"]
|
||||
[ext_resource type="Texture2D" uid="uid://bxa27c7gnivwx" path="res://backgounds/night-sky-at-ceres.jpg" id="2_nirgk"]
|
||||
[ext_resource type="PackedScene" uid="uid://d31udhuuwrajn" path="res://levels/bottomhud.tscn" id="3_bpp6x"]
|
||||
[ext_resource path="res://levels/ui/savefile.gd" type="Script" id=1]
|
||||
[ext_resource path="res://backgounds/night-sky-at-ceres.jpg" type="Texture" id=2]
|
||||
[ext_resource path="res://fonts/button1.tres" type="DynamicFont" id=3]
|
||||
[ext_resource path="res://levels/bottomhud.tscn" type="PackedScene" id=4]
|
||||
[ext_resource path="res://fonts/title.tres" type="DynamicFont" id=5]
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_821nm"]
|
||||
bg_color = Color(0, 0.8, 0, 1)
|
||||
[sub_resource type="StyleBoxFlat" id=1]
|
||||
bg_color = Color( 0, 0.8, 0, 1 )
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_6u0xs"]
|
||||
bg_color = Color(0, 0.8, 0, 1)
|
||||
[sub_resource type="StyleBoxFlat" id=2]
|
||||
bg_color = Color( 0, 0.8, 0, 1 )
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_r2qrn"]
|
||||
bg_color = Color(0, 0.8, 0, 1)
|
||||
[sub_resource type="StyleBoxFlat" id=3]
|
||||
bg_color = Color( 0, 0.8, 0, 1 )
|
||||
|
||||
[node name="Savefile" 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_6r0p0")
|
||||
script = ExtResource( 1 )
|
||||
|
||||
[node name="Night Sky" type="TextureRect" parent="."]
|
||||
layout_mode = 0
|
||||
offset_right = 1280.0
|
||||
offset_bottom = 720.0
|
||||
texture = ExtResource("2_nirgk")
|
||||
margin_right = 1280.0
|
||||
margin_bottom = 720.0
|
||||
texture = ExtResource( 2 )
|
||||
|
||||
[node name="Game name" type="Label" parent="."]
|
||||
layout_mode = 0
|
||||
offset_left = 31.0
|
||||
offset_top = 77.0
|
||||
offset_right = 1237.0
|
||||
offset_bottom = 207.0
|
||||
theme_override_font_sizes/font_size = 95
|
||||
margin_top = 55.0
|
||||
margin_right = 1280.0
|
||||
margin_bottom = 185.0
|
||||
custom_fonts/font = ExtResource( 5 )
|
||||
text = "BUTTON_PERSISTENCE"
|
||||
horizontal_alignment = 1
|
||||
align = 1
|
||||
valign = 1
|
||||
|
||||
[node name="Bottomhud" parent="." instance=ExtResource("3_bpp6x")]
|
||||
layout_mode = 1
|
||||
[node name="Bottomhud" parent="." instance=ExtResource( 4 )]
|
||||
|
||||
[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 = -322.0
|
||||
offset_top = -362.0
|
||||
offset_right = 322.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 0
|
||||
margin_left = 254.5
|
||||
margin_top = 293.0
|
||||
margin_right = 1036.5
|
||||
margin_bottom = 705.0
|
||||
|
||||
[node name="Load" type="Button" parent="VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 80
|
||||
theme_override_styles/focus = SubResource("StyleBoxFlat_821nm")
|
||||
margin_right = 782.0
|
||||
margin_bottom = 100.0
|
||||
custom_fonts/font = ExtResource( 3 )
|
||||
custom_styles/focus = SubResource( 1 )
|
||||
text = "BUTTON_LOAD"
|
||||
|
||||
[node name="Save" type="Button" parent="VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 80
|
||||
theme_override_styles/focus = SubResource("StyleBoxFlat_6u0xs")
|
||||
margin_top = 104.0
|
||||
margin_right = 782.0
|
||||
margin_bottom = 204.0
|
||||
custom_fonts/font = ExtResource( 3 )
|
||||
custom_styles/focus = SubResource( 2 )
|
||||
text = "BUTTON_SAVE"
|
||||
|
||||
[node name="Erase" type="Button" parent="VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 80
|
||||
theme_override_styles/focus = SubResource("StyleBoxFlat_r2qrn")
|
||||
margin_top = 208.0
|
||||
margin_right = 782.0
|
||||
margin_bottom = 308.0
|
||||
custom_fonts/font = ExtResource( 3 )
|
||||
custom_styles/focus = SubResource( 3 )
|
||||
text = "BUTTON_ERASE"
|
||||
|
||||
[node name="Back" type="Button" parent="VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 80
|
||||
theme_override_styles/focus = SubResource("StyleBoxFlat_r2qrn")
|
||||
margin_top = 312.0
|
||||
margin_right = 782.0
|
||||
margin_bottom = 412.0
|
||||
custom_fonts/font = ExtResource( 3 )
|
||||
custom_styles/focus = SubResource( 3 )
|
||||
text = "BUTTON_RETURN"
|
||||
|
||||
[connection signal="pressed" from="VBoxContainer/Load" to="." method="_on_load_pressed"]
|
||||
|
|
|
@ -11,15 +11,15 @@ func _process(delta):
|
|||
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")
|
||||
get_tree().change_scene("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")
|
||||
# get_tree().change_scene("res://backgounds/galaxy.tscn")
|
||||
#elif Global.gamelevel == 1:
|
||||
# get_tree().change_scene_to_file("res://backgounds/wormhole.tscn")
|
||||
# get_tree().change_scene("res://backgounds/wormhole.tscn")
|
||||
#else:
|
||||
# get_tree().change_scene_to_file("res://backgounds/abstract.tscn")
|
||||
# get_tree().change_scene("res://backgounds/abstract.tscn")
|
||||
#get_tree().root.add_child(title)
|
||||
#get_tree().root.remove_child(boot)
|
||||
#boot.queue_free()
|
||||
|
@ -45,32 +45,32 @@ func _input(event):
|
|||
|
||||
|
||||
func _on_back_pressed():
|
||||
get_tree().change_scene_to_file("res://levels/ui/debug.tscn")
|
||||
get_tree().change_scene("res://levels/ui/debug.tscn")
|
||||
|
||||
func _on_credits_pressed():
|
||||
get_tree().change_scene_to_file("res://levels/ui/credits.tscn")
|
||||
get_tree().change_scene("res://levels/ui/credits.tscn")
|
||||
|
||||
|
||||
func _on_wip_pressed():
|
||||
get_tree().change_scene_to_file("res://backgounds/wip.tscn")
|
||||
get_tree().change_scene("res://backgounds/wip.tscn")
|
||||
|
||||
|
||||
func _on_results_pressed():
|
||||
get_tree().change_scene_to_file("res://backgounds/result.tscn")
|
||||
get_tree().change_scene("res://backgounds/result.tscn")
|
||||
|
||||
|
||||
func _on_disclaimer_pressed():
|
||||
Global.debug = false
|
||||
get_tree().change_scene_to_file("res://backgounds/disclaimer.tscn")
|
||||
get_tree().change_scene("res://backgounds/disclaimer.tscn")
|
||||
|
||||
|
||||
func _on_testrooms_pressed():
|
||||
get_tree().change_scene_to_file("res://levels/ui/testrooms.tscn")
|
||||
get_tree().change_scene("res://levels/ui/testrooms.tscn")
|
||||
|
||||
|
||||
func _on_ceres_pressed():
|
||||
get_tree().change_scene_to_file("res://levels/ui/ceres.tscn")
|
||||
get_tree().change_scene("res://levels/ui/ceres.tscn")
|
||||
|
||||
|
||||
func _on_cutscene_pressed():
|
||||
get_tree().change_scene_to_file("res://levels/ui/cscene.tscn")
|
||||
get_tree().change_scene("res://levels/ui/cscene.tscn")
|
||||
|
|
|
@ -1,102 +1,104 @@
|
|||
[gd_scene load_steps=6 format=3 uid="uid://duyxejhnys1l4"]
|
||||
[gd_scene load_steps=7 format=2]
|
||||
|
||||
[ext_resource type="Script" path="res://levels/ui/scene.gd" id="1_hxcrn"]
|
||||
[ext_resource type="Texture2D" uid="uid://bxa27c7gnivwx" path="res://backgounds/night-sky-at-ceres.jpg" id="2_jnmob"]
|
||||
[ext_resource type="PackedScene" uid="uid://d31udhuuwrajn" path="res://levels/bottomhud.tscn" id="4_2y7h7"]
|
||||
[ext_resource path="res://levels/bottomhud.tscn" type="PackedScene" id=1]
|
||||
[ext_resource path="res://backgounds/night-sky-at-ceres.jpg" type="Texture" id=2]
|
||||
[ext_resource path="res://levels/ui/scene.gd" type="Script" id=4]
|
||||
[ext_resource path="res://fonts/start.tres" type="DynamicFont" id=5]
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_6u0xs"]
|
||||
bg_color = Color(0, 0.8, 0, 1)
|
||||
[sub_resource type="StyleBoxFlat" id=1]
|
||||
bg_color = Color( 0, 0.8, 0, 1 )
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_r2qrn"]
|
||||
bg_color = Color(0, 0.8, 0, 1)
|
||||
[sub_resource type="StyleBoxFlat" id=3]
|
||||
bg_color = Color( 0, 0.8, 0, 1 )
|
||||
|
||||
[node name="Scene" 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_hxcrn")
|
||||
script = ExtResource( 4 )
|
||||
|
||||
[node name="Night Sky" type="TextureRect" parent="."]
|
||||
layout_mode = 0
|
||||
offset_right = 1280.0
|
||||
offset_bottom = 720.0
|
||||
texture = ExtResource("2_jnmob")
|
||||
margin_right = 1280.0
|
||||
margin_bottom = 720.0
|
||||
texture = ExtResource( 2 )
|
||||
|
||||
[node name="Game name" type="Label" parent="."]
|
||||
layout_mode = 0
|
||||
offset_left = 49.0
|
||||
offset_top = 3.0
|
||||
offset_right = 1224.0
|
||||
offset_bottom = 73.0
|
||||
theme_override_font_sizes/font_size = 40
|
||||
margin_top = 3.0
|
||||
margin_right = 1280.0
|
||||
margin_bottom = 73.0
|
||||
custom_fonts/font = ExtResource( 5 )
|
||||
text = "BUTTON_SCENESELECT"
|
||||
horizontal_alignment = 1
|
||||
align = 1
|
||||
valign = 1
|
||||
|
||||
[node name="Bottomhud" parent="." instance=ExtResource("4_2y7h7")]
|
||||
layout_mode = 1
|
||||
[node name="Bottomhud" parent="." instance=ExtResource( 1 )]
|
||||
|
||||
[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 = -238.5
|
||||
offset_top = -395.0
|
||||
offset_right = 238.5
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 0
|
||||
margin_left = 111.0
|
||||
margin_top = 173.0
|
||||
margin_right = 1128.0
|
||||
margin_bottom = 651.0
|
||||
|
||||
[node name="Disclaimer" type="Button" parent="VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 32
|
||||
theme_override_styles/focus = SubResource("StyleBoxFlat_6u0xs")
|
||||
margin_right = 1017.0
|
||||
margin_bottom = 54.0
|
||||
custom_fonts/font = ExtResource( 5 )
|
||||
custom_styles/focus = SubResource( 1 )
|
||||
text = "BUTTON_SCENE_DISCLAIMER"
|
||||
|
||||
[node name="Testrooms" type="Button" parent="VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 32
|
||||
theme_override_styles/focus = SubResource("StyleBoxFlat_6u0xs")
|
||||
margin_top = 58.0
|
||||
margin_right = 1017.0
|
||||
margin_bottom = 112.0
|
||||
custom_fonts/font = ExtResource( 5 )
|
||||
custom_styles/focus = SubResource( 1 )
|
||||
text = "BUTTON_TESTROOMS"
|
||||
|
||||
[node name="Ceres" type="Button" parent="VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 32
|
||||
theme_override_styles/focus = SubResource("StyleBoxFlat_6u0xs")
|
||||
margin_top = 116.0
|
||||
margin_right = 1017.0
|
||||
margin_bottom = 170.0
|
||||
custom_fonts/font = ExtResource( 5 )
|
||||
custom_styles/focus = SubResource( 1 )
|
||||
text = "BUTTON_CERES"
|
||||
|
||||
[node name="Results" type="Button" parent="VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 32
|
||||
theme_override_styles/focus = SubResource("StyleBoxFlat_6u0xs")
|
||||
margin_top = 174.0
|
||||
margin_right = 1017.0
|
||||
margin_bottom = 228.0
|
||||
custom_fonts/font = ExtResource( 5 )
|
||||
custom_styles/focus = SubResource( 1 )
|
||||
text = "BUTTON_SCORESCREEN"
|
||||
|
||||
[node name="Credits" type="Button" parent="VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 32
|
||||
theme_override_styles/focus = SubResource("StyleBoxFlat_6u0xs")
|
||||
margin_top = 232.0
|
||||
margin_right = 1017.0
|
||||
margin_bottom = 286.0
|
||||
custom_fonts/font = ExtResource( 5 )
|
||||
custom_styles/focus = SubResource( 1 )
|
||||
text = "BUTTON_CREDITS"
|
||||
|
||||
[node name="WIP" type="Button" parent="VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 32
|
||||
theme_override_styles/focus = SubResource("StyleBoxFlat_6u0xs")
|
||||
margin_top = 290.0
|
||||
margin_right = 1017.0
|
||||
margin_bottom = 344.0
|
||||
custom_fonts/font = ExtResource( 5 )
|
||||
custom_styles/focus = SubResource( 1 )
|
||||
text = "BUTTON_WIP"
|
||||
|
||||
[node name="Cutscene" type="Button" parent="VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 32
|
||||
theme_override_styles/focus = SubResource("StyleBoxFlat_6u0xs")
|
||||
margin_top = 348.0
|
||||
margin_right = 1017.0
|
||||
margin_bottom = 402.0
|
||||
custom_fonts/font = ExtResource( 5 )
|
||||
custom_styles/focus = SubResource( 1 )
|
||||
text = "BUTTON_CUTSCENES"
|
||||
|
||||
[node name="Back" type="Button" parent="VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 32
|
||||
theme_override_styles/focus = SubResource("StyleBoxFlat_r2qrn")
|
||||
margin_top = 406.0
|
||||
margin_right = 1017.0
|
||||
margin_bottom = 460.0
|
||||
custom_fonts/font = ExtResource( 5 )
|
||||
custom_styles/focus = SubResource( 3 )
|
||||
text = "BUTTON_RETURN"
|
||||
|
||||
[connection signal="pressed" from="VBoxContainer/Disclaimer" to="." method="_on_disclaimer_pressed"]
|
||||
|
|
|
@ -11,11 +11,11 @@ func _ready():
|
|||
gldrv = $VBoxContainer/Bullethell
|
||||
#Input.set_mouse_mode(Input.MOUSE_MODE_HIDDEN)
|
||||
$VBoxContainer/L20.grab_focus()
|
||||
if DisplayServer.window_get_vsync_mode() == 1:
|
||||
if OS.is_vsync_enabled():
|
||||
vsync.set_text(tr("SETTING_VSYNCT"))
|
||||
else:
|
||||
vsync.set_text(tr("SETTING_VSYNCF"))
|
||||
if DisplayServer.window_get_mode() == 3:
|
||||
if OS.is_window_fullscreen():
|
||||
fullscreen.set_text(tr("SETTING_FULLSCREEN"))
|
||||
else:
|
||||
fullscreen.set_text(tr("SETTING_WINDOWED"))
|
||||
|
@ -28,15 +28,15 @@ func _process(delta):
|
|||
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")
|
||||
get_tree().change_scene("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")
|
||||
# get_tree().change_scene("res://backgounds/galaxy.tscn")
|
||||
#elif Global.gamelevel == 1:
|
||||
# get_tree().change_scene_to_file("res://backgounds/wormhole.tscn")
|
||||
# get_tree().change_scene("res://backgounds/wormhole.tscn")
|
||||
#else:
|
||||
# get_tree().change_scene_to_file("res://backgounds/abstract.tscn")
|
||||
# get_tree().change_scene("res://backgounds/abstract.tscn")
|
||||
#get_tree().root.add_child(title)
|
||||
#get_tree().root.remove_child(boot)
|
||||
#boot.queue_free()
|
||||
|
@ -62,30 +62,30 @@ func _input(event):
|
|||
|
||||
|
||||
func _on_back_pressed():
|
||||
get_tree().change_scene_to_file("res://levels/ui/tmenu.tscn")
|
||||
get_tree().change_scene("res://levels/ui/tmenu.tscn")
|
||||
|
||||
|
||||
func _on_l_20_pressed():
|
||||
if DisplayServer.window_get_vsync_mode() == 1:
|
||||
DisplayServer.window_set_vsync_mode(0)
|
||||
if OS.is_vsync_enabled():
|
||||
OS.set_use_vsync(false)
|
||||
vsync.set_text(tr("SETTING_VSYNCF"))
|
||||
else:
|
||||
DisplayServer.window_set_vsync_mode(1)
|
||||
OS.set_use_vsync(true)
|
||||
vsync.set_text(tr("SETTING_VSYNCT"))
|
||||
|
||||
|
||||
func _on_lilytest_pressed() -> void:
|
||||
if DisplayServer.window_get_mode() == 3:
|
||||
DisplayServer.window_set_mode(0)
|
||||
if OS.is_window_fullscreen():
|
||||
OS.set_window_fullscreen(false)
|
||||
fullscreen.set_text(tr("SETTING_WINDOWED"))
|
||||
else:
|
||||
DisplayServer.window_set_mode(3)
|
||||
OS.set_window_fullscreen(true)
|
||||
fullscreen.set_text(tr("SETTING_FULLSCREEN"))
|
||||
|
||||
|
||||
func _on_dialogtest_pressed() -> void:
|
||||
get_tree().change_scene_to_file("res://levels/ui/debug.tscn")
|
||||
get_tree().change_scene("res://levels/ui/debug.tscn")
|
||||
|
||||
|
||||
func _on_bullethell_pressed() -> void:
|
||||
get_tree().change_scene_to_file("res://levels/ui/savefile.tscn")
|
||||
get_tree().change_scene("res://levels/ui/savefile.tscn")
|
||||
|
|
|
@ -1,96 +1,99 @@
|
|||
[gd_scene load_steps=6 format=3 uid="uid://c30jrya5fjras"]
|
||||
[gd_scene load_steps=8 format=2]
|
||||
|
||||
[ext_resource type="Script" path="res://levels/ui/settings.gd" id="1_7pd0a"]
|
||||
[ext_resource type="Texture2D" uid="uid://bxa27c7gnivwx" path="res://backgounds/night-sky-at-ceres.jpg" id="2_pw0o8"]
|
||||
[ext_resource type="PackedScene" uid="uid://d31udhuuwrajn" path="res://levels/bottomhud.tscn" id="3_4donf"]
|
||||
[ext_resource path="res://levels/bottomhud.tscn" type="PackedScene" id=1]
|
||||
[ext_resource path="res://backgounds/night-sky-at-ceres.jpg" type="Texture" id=2]
|
||||
[ext_resource path="res://levels/ui/settings.gd" type="Script" id=4]
|
||||
[ext_resource path="res://fonts/start.tres" type="DynamicFont" id=5]
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_6u0xs"]
|
||||
bg_color = Color(0, 0.8, 0, 1)
|
||||
[sub_resource type="StyleBoxFlat" id=1]
|
||||
bg_color = Color( 0, 0.8, 0, 1 )
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_r2qrn"]
|
||||
bg_color = Color(0, 0.8, 0, 1)
|
||||
[sub_resource type="StyleBoxFlat" id=2]
|
||||
bg_color = Color( 0, 0.8, 0, 1 )
|
||||
|
||||
[node name="Settings" type="Control"]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
[sub_resource type="StyleBoxFlat" id=3]
|
||||
bg_color = Color( 0, 0.8, 0, 1 )
|
||||
|
||||
[node name="Scene" type="Control"]
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
script = ExtResource("1_7pd0a")
|
||||
script = ExtResource( 4 )
|
||||
|
||||
[node name="Night Sky" type="TextureRect" parent="."]
|
||||
layout_mode = 0
|
||||
offset_right = 1280.0
|
||||
offset_bottom = 720.0
|
||||
texture = ExtResource("2_pw0o8")
|
||||
margin_right = 1280.0
|
||||
margin_bottom = 720.0
|
||||
texture = ExtResource( 2 )
|
||||
|
||||
[node name="Game name" type="Label" parent="."]
|
||||
layout_mode = 0
|
||||
offset_left = 35.0
|
||||
offset_top = 3.0
|
||||
offset_right = 1235.0
|
||||
offset_bottom = 73.0
|
||||
theme_override_font_sizes/font_size = 40
|
||||
margin_top = 3.0
|
||||
margin_right = 1280.0
|
||||
margin_bottom = 73.0
|
||||
custom_fonts/font = ExtResource( 5 )
|
||||
text = "BUTTON_SETTINGS"
|
||||
horizontal_alignment = 1
|
||||
align = 1
|
||||
valign = 1
|
||||
|
||||
[node name="Bottomhud" parent="." instance=ExtResource("3_4donf")]
|
||||
layout_mode = 1
|
||||
[node name="Bottomhud" parent="." instance=ExtResource( 1 )]
|
||||
|
||||
[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 = -139.0
|
||||
offset_top = -395.0
|
||||
offset_right = 139.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 0
|
||||
margin_left = 126.0
|
||||
margin_top = 169.0
|
||||
margin_right = 1172.0
|
||||
margin_bottom = 628.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")
|
||||
margin_right = 1046.0
|
||||
margin_bottom = 54.0
|
||||
custom_fonts/font = ExtResource( 5 )
|
||||
custom_styles/focus = SubResource( 1 )
|
||||
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")
|
||||
margin_top = 58.0
|
||||
margin_right = 1046.0
|
||||
margin_bottom = 112.0
|
||||
custom_fonts/font = ExtResource( 5 )
|
||||
custom_styles/focus = SubResource( 2 )
|
||||
text = "MENU_MAP"
|
||||
|
||||
[node name="Dialogtest" type="Button" parent="VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 32
|
||||
theme_override_styles/focus = SubResource("StyleBoxFlat_6u0xs")
|
||||
margin_top = 116.0
|
||||
margin_right = 1046.0
|
||||
margin_bottom = 170.0
|
||||
custom_fonts/font = ExtResource( 5 )
|
||||
custom_styles/focus = SubResource( 2 )
|
||||
text = "BUTTON_DEBUG"
|
||||
|
||||
[node name="Bullethell" type="Button" parent="VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 32
|
||||
theme_override_styles/focus = SubResource("StyleBoxFlat_6u0xs")
|
||||
margin_top = 174.0
|
||||
margin_right = 1046.0
|
||||
margin_bottom = 228.0
|
||||
custom_fonts/font = ExtResource( 5 )
|
||||
custom_styles/focus = SubResource( 2 )
|
||||
text = "BUTTON_PERSISTENCE"
|
||||
|
||||
[node name="Credits" type="Button" parent="VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 32
|
||||
theme_override_styles/focus = SubResource("StyleBoxFlat_6u0xs")
|
||||
margin_top = 232.0
|
||||
margin_right = 1046.0
|
||||
margin_bottom = 286.0
|
||||
custom_fonts/font = ExtResource( 5 )
|
||||
custom_styles/focus = SubResource( 2 )
|
||||
text = "BUTTON_PLACEHOLDER"
|
||||
|
||||
[node name="WIP" type="Button" parent="VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 32
|
||||
theme_override_styles/focus = SubResource("StyleBoxFlat_6u0xs")
|
||||
margin_top = 290.0
|
||||
margin_right = 1046.0
|
||||
margin_bottom = 344.0
|
||||
custom_fonts/font = ExtResource( 5 )
|
||||
custom_styles/focus = SubResource( 2 )
|
||||
text = "BUTTON_PLACEHOLDER"
|
||||
|
||||
[node name="Back" type="Button" parent="VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 32
|
||||
theme_override_styles/focus = SubResource("StyleBoxFlat_r2qrn")
|
||||
margin_top = 348.0
|
||||
margin_right = 1046.0
|
||||
margin_bottom = 402.0
|
||||
custom_fonts/font = ExtResource( 5 )
|
||||
custom_styles/focus = SubResource( 3 )
|
||||
text = "BUTTON_RETURN"
|
||||
|
||||
[connection signal="pressed" from="VBoxContainer/L20" to="." method="_on_l_20_pressed"]
|
||||
|
|
|
@ -7,7 +7,7 @@ func _ready():
|
|||
Input.set_mouse_mode(Input.MOUSE_MODE_HIDDEN)
|
||||
add_child(player)
|
||||
player.mix_target = 1
|
||||
player.bus = &"SFX1"
|
||||
player.bus = "SFX1"
|
||||
$"BoxContainer/VBoxContainer/Game Over".grab_focus()
|
||||
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
|
@ -18,7 +18,7 @@ func _process(delta):
|
|||
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")
|
||||
get_tree().change_scene("res://backgounds/disclaimer.tscn")
|
||||
#Global.live = 1
|
||||
#Global.gamelevel = randi() % 3
|
||||
#if Global.gamelevel == 0:
|
||||
|
@ -52,7 +52,7 @@ func _input(event):
|
|||
|
||||
|
||||
func _on_back_pressed():
|
||||
get_tree().change_scene_to_file("res://levels/ui/soundtest.tscn")
|
||||
get_tree().change_scene("res://levels/ui/soundtest.tscn")
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -1,92 +1,83 @@
|
|||
[gd_scene load_steps=6 format=3 uid="uid://cv2a37xetkkse"]
|
||||
[gd_scene load_steps=8 format=2]
|
||||
|
||||
[ext_resource type="Script" path="res://levels/ui/sfxtest.gd" id="1_l1lbb"]
|
||||
[ext_resource type="Texture2D" uid="uid://bxa27c7gnivwx" path="res://backgounds/night-sky-at-ceres.jpg" id="2_uuurj"]
|
||||
[ext_resource type="PackedScene" uid="uid://d31udhuuwrajn" path="res://levels/bottomhud.tscn" id="4_xxv3m"]
|
||||
[ext_resource path="res://levels/ui/sfxtest.gd" type="Script" id=1]
|
||||
[ext_resource path="res://fonts/start.tres" type="DynamicFont" id=2]
|
||||
[ext_resource path="res://backgounds/night-sky-at-ceres.jpg" type="Texture" id=3]
|
||||
[ext_resource path="res://levels/bottomhud.tscn" type="PackedScene" id=4]
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_cprm3"]
|
||||
bg_color = Color(0, 0.8, 0, 1)
|
||||
[sub_resource type="StyleBoxFlat" id=1]
|
||||
bg_color = Color( 0, 0.8, 0, 1 )
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_0dqsq"]
|
||||
bg_color = Color(0, 0.8, 0, 1)
|
||||
[sub_resource type="StyleBoxFlat" id=2]
|
||||
bg_color = Color( 0, 0.8, 0, 1 )
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id=3]
|
||||
bg_color = Color( 0, 0.8, 0, 1 )
|
||||
|
||||
[node name="Sfxtest" 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_l1lbb")
|
||||
script = ExtResource( 1 )
|
||||
|
||||
[node name="Night Sky" type="TextureRect" parent="."]
|
||||
layout_mode = 0
|
||||
offset_right = 1280.0
|
||||
offset_bottom = 720.0
|
||||
texture = ExtResource("2_uuurj")
|
||||
margin_right = 1280.0
|
||||
margin_bottom = 720.0
|
||||
texture = ExtResource( 3 )
|
||||
|
||||
[node name="Game name" type="Label" parent="."]
|
||||
layout_mode = 0
|
||||
offset_left = 39.0
|
||||
offset_top = 3.0
|
||||
offset_right = 1232.0
|
||||
offset_bottom = 73.0
|
||||
theme_override_font_sizes/font_size = 40
|
||||
margin_top = 3.0
|
||||
margin_right = 1280.0
|
||||
margin_bottom = 73.0
|
||||
custom_fonts/font = ExtResource( 2 )
|
||||
text = "MENU_SFXTEST"
|
||||
horizontal_alignment = 1
|
||||
align = 1
|
||||
valign = 1
|
||||
|
||||
[node name="Stop" type="Label" parent="."]
|
||||
layout_mode = 0
|
||||
offset_left = 5.0
|
||||
offset_top = 672.0
|
||||
offset_right = 444.0
|
||||
offset_bottom = 708.0
|
||||
theme_override_font_sizes/font_size = 22
|
||||
text = "Press X to stop playback"
|
||||
[node name="Bottomhud" parent="." instance=ExtResource( 4 )]
|
||||
|
||||
[node name="Bottomhud" parent="." instance=ExtResource("4_xxv3m")]
|
||||
layout_mode = 1
|
||||
|
||||
[node name="BoxContainer" type="BoxContainer" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 3
|
||||
anchor_left = 1.0
|
||||
anchor_top = 1.0
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_left = -640.0
|
||||
offset_top = -419.0
|
||||
grow_horizontal = 0
|
||||
grow_vertical = 0
|
||||
[node name="BoxContainer" type="HBoxContainer" parent="."]
|
||||
margin_left = 640.0
|
||||
margin_top = 301.0
|
||||
margin_right = 1089.0
|
||||
margin_bottom = 413.0
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="BoxContainer"]
|
||||
layout_mode = 2
|
||||
margin_right = 241.0
|
||||
margin_bottom = 112.0
|
||||
|
||||
[node name="Game Over" type="Button" parent="BoxContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 25
|
||||
theme_override_styles/focus = SubResource("StyleBoxFlat_cprm3")
|
||||
margin_right = 241.0
|
||||
margin_bottom = 54.0
|
||||
custom_fonts/font = ExtResource( 2 )
|
||||
custom_styles/focus = SubResource( 1 )
|
||||
text = "Game Over"
|
||||
|
||||
[node name="Gauge Fill" type="Button" parent="BoxContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 25
|
||||
theme_override_styles/focus = SubResource("StyleBoxFlat_cprm3")
|
||||
margin_top = 58.0
|
||||
margin_right = 241.0
|
||||
margin_bottom = 112.0
|
||||
custom_fonts/font = ExtResource( 2 )
|
||||
custom_styles/focus = SubResource( 2 )
|
||||
text = "Gauge Fill"
|
||||
|
||||
[node name="VBoxContainer2" type="VBoxContainer" parent="BoxContainer"]
|
||||
layout_mode = 2
|
||||
margin_left = 245.0
|
||||
margin_right = 605.0
|
||||
margin_bottom = 112.0
|
||||
|
||||
[node name="Explosion" type="Button" parent="BoxContainer/VBoxContainer2"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 25
|
||||
theme_override_styles/focus = SubResource("StyleBoxFlat_cprm3")
|
||||
margin_right = 360.0
|
||||
margin_bottom = 54.0
|
||||
custom_fonts/font = ExtResource( 2 )
|
||||
custom_styles/focus = SubResource( 3 )
|
||||
text = "Explosion"
|
||||
|
||||
[node name="Back" type="Button" parent="BoxContainer/VBoxContainer2"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 25
|
||||
theme_override_styles/focus = SubResource("StyleBoxFlat_0dqsq")
|
||||
margin_top = 58.0
|
||||
margin_right = 360.0
|
||||
margin_bottom = 112.0
|
||||
custom_fonts/font = ExtResource( 2 )
|
||||
custom_styles/focus = SubResource( 3 )
|
||||
text = "BUTTON_RETURN"
|
||||
|
||||
[connection signal="pressed" from="BoxContainer/VBoxContainer/Game Over" to="." method="_on_game_over_pressed"]
|
||||
|
|
|
@ -34,17 +34,17 @@ func _input(event):
|
|||
|
||||
|
||||
func _on_back_pressed():
|
||||
get_tree().change_scene_to_file("res://levels/ui/debug.tscn")
|
||||
get_tree().change_scene("res://levels/ui/debug.tscn")
|
||||
|
||||
|
||||
|
||||
func _on_music_pressed():
|
||||
get_tree().change_scene_to_file("res://levels/ui/musictest.tscn")
|
||||
get_tree().change_scene("res://levels/ui/musictest.tscn")
|
||||
|
||||
|
||||
func _on_sfx_pressed():
|
||||
get_tree().change_scene_to_file("res://levels/ui/sfxtest.tscn")
|
||||
get_tree().change_scene("res://levels/ui/sfxtest.tscn")
|
||||
|
||||
|
||||
func _on_alsa_pressed() -> void:
|
||||
get_tree().change_scene_to_file("res://levels/ui/alsatest.tscn")
|
||||
get_tree().change_scene("res://levels/ui/alsatest.tscn")
|
||||
|
|
|
@ -1,82 +1,77 @@
|
|||
[gd_scene load_steps=7 format=3 uid="uid://chg6qe1fijkh3"]
|
||||
[gd_scene load_steps=9 format=2]
|
||||
|
||||
[ext_resource type="Script" path="res://levels/ui/soundtest.gd" id="1_3bg6p"]
|
||||
[ext_resource type="Texture2D" uid="uid://bxa27c7gnivwx" path="res://backgounds/night-sky-at-ceres.jpg" id="2_x41qm"]
|
||||
[ext_resource type="PackedScene" uid="uid://d31udhuuwrajn" path="res://levels/bottomhud.tscn" id="4_2a53a"]
|
||||
[ext_resource path="res://levels/bottomhud.tscn" type="PackedScene" id=1]
|
||||
[ext_resource path="res://fonts/button1.tres" type="DynamicFont" id=2]
|
||||
[ext_resource path="res://backgounds/night-sky-at-ceres.jpg" type="Texture" id=3]
|
||||
[ext_resource path="res://levels/ui/soundtest.gd" type="Script" id=4]
|
||||
[ext_resource path="res://fonts/start.tres" type="DynamicFont" id=5]
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_wtbgt"]
|
||||
bg_color = Color(0, 0.8, 0, 1)
|
||||
[sub_resource type="StyleBoxFlat" id=1]
|
||||
bg_color = Color( 0, 0.8, 0, 1 )
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_4arqn"]
|
||||
bg_color = Color(0, 0.8, 0, 1)
|
||||
[sub_resource type="StyleBoxFlat" id=2]
|
||||
bg_color = Color( 0, 0.8, 0, 1 )
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_wro6j"]
|
||||
bg_color = Color(0, 0.8, 0, 1)
|
||||
[sub_resource type="StyleBoxFlat" id=3]
|
||||
bg_color = Color( 0, 0.8, 0, 1 )
|
||||
|
||||
[node name="Soundtest" 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_3bg6p")
|
||||
rect_pivot_offset = Vector2( -819, -192 )
|
||||
script = ExtResource( 4 )
|
||||
|
||||
[node name="Night Sky" type="TextureRect" parent="."]
|
||||
layout_mode = 0
|
||||
offset_right = 1280.0
|
||||
offset_bottom = 720.0
|
||||
texture = ExtResource("2_x41qm")
|
||||
margin_right = 1280.0
|
||||
margin_bottom = 720.0
|
||||
texture = ExtResource( 3 )
|
||||
|
||||
[node name="Game name" type="Label" parent="."]
|
||||
layout_mode = 0
|
||||
offset_left = 64.0
|
||||
offset_top = 3.0
|
||||
offset_right = 1213.0
|
||||
offset_bottom = 73.0
|
||||
theme_override_font_sizes/font_size = 40
|
||||
margin_top = 3.0
|
||||
margin_right = 1280.0
|
||||
margin_bottom = 73.0
|
||||
custom_fonts/font = ExtResource( 5 )
|
||||
text = "BUTTON_SOUNDTEST"
|
||||
horizontal_alignment = 1
|
||||
align = 1
|
||||
valign = 1
|
||||
|
||||
[node name="Bottomhud" parent="." instance=ExtResource("4_2a53a")]
|
||||
layout_mode = 1
|
||||
[node name="Bottomhud" parent="." instance=ExtResource( 1 )]
|
||||
|
||||
[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 = -342.0
|
||||
offset_top = -362.0
|
||||
offset_right = 342.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 0
|
||||
margin_left = 73.0
|
||||
margin_top = 280.0
|
||||
margin_right = 1204.0
|
||||
margin_bottom = 692.0
|
||||
|
||||
[node name="Music" type="Button" parent="VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 80
|
||||
theme_override_styles/focus = SubResource("StyleBoxFlat_wtbgt")
|
||||
margin_right = 1131.0
|
||||
margin_bottom = 100.0
|
||||
custom_fonts/font = ExtResource( 2 )
|
||||
custom_styles/focus = SubResource( 1 )
|
||||
text = "BUTTON_MUSICTEST"
|
||||
|
||||
[node name="Sfx" type="Button" parent="VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 80
|
||||
theme_override_styles/focus = SubResource("StyleBoxFlat_4arqn")
|
||||
margin_top = 104.0
|
||||
margin_right = 1131.0
|
||||
margin_bottom = 204.0
|
||||
custom_fonts/font = ExtResource( 2 )
|
||||
custom_styles/focus = SubResource( 2 )
|
||||
text = "BUTTON_SFXTEST"
|
||||
|
||||
[node name="ALSA" type="Button" parent="VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 80
|
||||
theme_override_styles/focus = SubResource("StyleBoxFlat_4arqn")
|
||||
disabled = true
|
||||
margin_top = 208.0
|
||||
margin_right = 1131.0
|
||||
margin_bottom = 308.0
|
||||
custom_fonts/font = ExtResource( 2 )
|
||||
custom_styles/focus = SubResource( 2 )
|
||||
text = "ALSA_TEST_MENU"
|
||||
|
||||
[node name="Back" type="Button" parent="VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 80
|
||||
theme_override_styles/focus = SubResource("StyleBoxFlat_wro6j")
|
||||
margin_top = 312.0
|
||||
margin_right = 1131.0
|
||||
margin_bottom = 412.0
|
||||
custom_fonts/font = ExtResource( 2 )
|
||||
custom_styles/focus = SubResource( 3 )
|
||||
text = "BUTTON_RETURN"
|
||||
|
||||
[connection signal="pressed" from="VBoxContainer/Music" to="." method="_on_music_pressed"]
|
||||
|
|
|
@ -11,15 +11,15 @@ func _process(delta):
|
|||
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")
|
||||
get_tree().change_scene("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")
|
||||
# get_tree().change_scene("res://backgounds/galaxy.tscn")
|
||||
#elif Global.gamelevel == 1:
|
||||
# get_tree().change_scene_to_file("res://backgounds/wormhole.tscn")
|
||||
# get_tree().change_scene("res://backgounds/wormhole.tscn")
|
||||
#else:
|
||||
# get_tree().change_scene_to_file("res://backgounds/abstract.tscn")
|
||||
# get_tree().change_scene("res://backgounds/abstract.tscn")
|
||||
#get_tree().root.add_child(title)
|
||||
#get_tree().root.remove_child(boot)
|
||||
#boot.queue_free()
|
||||
|
@ -45,28 +45,28 @@ func _input(event):
|
|||
|
||||
|
||||
func _on_back_pressed():
|
||||
get_tree().change_scene_to_file("res://levels/ui/scene.tscn")
|
||||
get_tree().change_scene("res://levels/ui/scene.tscn")
|
||||
|
||||
|
||||
func _on_testspawn_pressed():
|
||||
Global.dplace = [0, 2, 1]
|
||||
Global.live = 1
|
||||
get_tree().change_scene_to_file("res://levels/ui/gameplay.tscn")
|
||||
get_tree().change_scene("res://levels/ui/gameplay.tscn")
|
||||
|
||||
|
||||
func _on_lilytest_pressed():
|
||||
Global.dplace = [0, 1, 1]
|
||||
Global.live = 1
|
||||
get_tree().change_scene_to_file("res://levels/ui/gameplay.tscn")
|
||||
get_tree().change_scene("res://levels/ui/gameplay.tscn")
|
||||
|
||||
|
||||
func _on_dialogtest_pressed():
|
||||
Global.dplace = [0, 2, 0]
|
||||
Global.live = 1
|
||||
get_tree().change_scene_to_file("res://levels/ui/gameplay.tscn")
|
||||
get_tree().change_scene("res://levels/ui/gameplay.tscn")
|
||||
|
||||
|
||||
func _on_bullethell_pressed():
|
||||
Global.dplace = [0, 1, 0]
|
||||
Global.live = 1
|
||||
get_tree().change_scene_to_file("res://levels/ui/gameplay.tscn")
|
||||
get_tree().change_scene("res://levels/ui/gameplay.tscn")
|
||||
|
|
|
@ -1,96 +1,99 @@
|
|||
[gd_scene load_steps=6 format=3 uid="uid://b0pgk6d871bor"]
|
||||
[gd_scene load_steps=8 format=2]
|
||||
|
||||
[ext_resource type="Script" path="res://levels/ui/testrooms.gd" id="1_p5nnr"]
|
||||
[ext_resource type="Texture2D" uid="uid://bxa27c7gnivwx" path="res://backgounds/night-sky-at-ceres.jpg" id="2_vkpo3"]
|
||||
[ext_resource type="PackedScene" uid="uid://d31udhuuwrajn" path="res://levels/bottomhud.tscn" id="4_jvl8w"]
|
||||
[ext_resource path="res://backgounds/night-sky-at-ceres.jpg" type="Texture" id=1]
|
||||
[ext_resource path="res://levels/ui/testrooms.gd" type="Script" id=2]
|
||||
[ext_resource path="res://fonts/start.tres" type="DynamicFont" id=3]
|
||||
[ext_resource path="res://levels/bottomhud.tscn" type="PackedScene" id=4]
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_6u0xs"]
|
||||
bg_color = Color(0, 0.8, 0, 1)
|
||||
[sub_resource type="StyleBoxFlat" id=1]
|
||||
bg_color = Color( 0, 0.8, 0, 1 )
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_r2qrn"]
|
||||
bg_color = Color(0, 0.8, 0, 1)
|
||||
[sub_resource type="StyleBoxFlat" id=4]
|
||||
bg_color = Color( 0, 0.8, 0, 1 )
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id=3]
|
||||
bg_color = Color( 0, 0.8, 0, 1 )
|
||||
|
||||
[node name="Testrooms" 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_p5nnr")
|
||||
script = ExtResource( 2 )
|
||||
|
||||
[node name="Night Sky" type="TextureRect" parent="."]
|
||||
layout_mode = 0
|
||||
offset_right = 1280.0
|
||||
offset_bottom = 720.0
|
||||
texture = ExtResource("2_vkpo3")
|
||||
margin_right = 1280.0
|
||||
margin_bottom = 720.0
|
||||
texture = ExtResource( 1 )
|
||||
|
||||
[node name="Game name" type="Label" parent="."]
|
||||
layout_mode = 0
|
||||
offset_left = 56.0
|
||||
offset_top = 3.0
|
||||
offset_right = 1218.0
|
||||
offset_bottom = 73.0
|
||||
theme_override_font_sizes/font_size = 40
|
||||
margin_top = 3.0
|
||||
margin_right = 1280.0
|
||||
margin_bottom = 73.0
|
||||
custom_fonts/font = ExtResource( 3 )
|
||||
text = "BUTTON_TESTROOMS"
|
||||
horizontal_alignment = 1
|
||||
align = 1
|
||||
valign = 1
|
||||
|
||||
[node name="Bottomhud" parent="." instance=ExtResource("4_jvl8w")]
|
||||
layout_mode = 1
|
||||
[node name="Bottomhud" parent="." instance=ExtResource( 4 )]
|
||||
|
||||
[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 = -194.5
|
||||
offset_top = -395.0
|
||||
offset_right = 194.5
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 0
|
||||
margin_left = 111.0
|
||||
margin_top = 173.0
|
||||
margin_right = 1128.0
|
||||
margin_bottom = 651.0
|
||||
|
||||
[node name="Testspawn" type="Button" parent="VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 32
|
||||
theme_override_styles/focus = SubResource("StyleBoxFlat_6u0xs")
|
||||
margin_right = 1017.0
|
||||
margin_bottom = 54.0
|
||||
custom_fonts/font = ExtResource( 3 )
|
||||
custom_styles/focus = SubResource( 1 )
|
||||
text = "BUTTON_SPAWNTEST"
|
||||
|
||||
[node name="Lilytest" type="Button" parent="VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 32
|
||||
theme_override_styles/focus = SubResource("StyleBoxFlat_6u0xs")
|
||||
margin_top = 58.0
|
||||
margin_right = 1017.0
|
||||
margin_bottom = 112.0
|
||||
custom_fonts/font = ExtResource( 3 )
|
||||
custom_styles/focus = SubResource( 1 )
|
||||
text = "BUTTOM_TESTBOSS"
|
||||
|
||||
[node name="Dialogtest" type="Button" parent="VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 32
|
||||
theme_override_styles/focus = SubResource("StyleBoxFlat_6u0xs")
|
||||
margin_top = 116.0
|
||||
margin_right = 1017.0
|
||||
margin_bottom = 170.0
|
||||
custom_fonts/font = ExtResource( 3 )
|
||||
custom_styles/focus = SubResource( 1 )
|
||||
text = "BUTTON_DIALOGTEST"
|
||||
|
||||
[node name="Bullethell" type="Button" parent="VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 32
|
||||
theme_override_styles/focus = SubResource("StyleBoxFlat_6u0xs")
|
||||
margin_top = 174.0
|
||||
margin_right = 1017.0
|
||||
margin_bottom = 228.0
|
||||
custom_fonts/font = ExtResource( 3 )
|
||||
custom_styles/focus = SubResource( 1 )
|
||||
text = "BUTTON_DANMAKUTEST"
|
||||
|
||||
[node name="Credits" type="Button" parent="VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 32
|
||||
theme_override_styles/focus = SubResource("StyleBoxFlat_6u0xs")
|
||||
margin_top = 232.0
|
||||
margin_right = 1017.0
|
||||
margin_bottom = 286.0
|
||||
custom_fonts/font = ExtResource( 3 )
|
||||
custom_styles/focus = SubResource( 4 )
|
||||
text = "BUTTON_PLACEHOLDER"
|
||||
|
||||
[node name="WIP" type="Button" parent="VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 32
|
||||
theme_override_styles/focus = SubResource("StyleBoxFlat_6u0xs")
|
||||
margin_top = 290.0
|
||||
margin_right = 1017.0
|
||||
margin_bottom = 344.0
|
||||
custom_fonts/font = ExtResource( 3 )
|
||||
custom_styles/focus = SubResource( 4 )
|
||||
text = "BUTTON_PLACEHOLDER"
|
||||
|
||||
[node name="Back" type="Button" parent="VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 32
|
||||
theme_override_styles/focus = SubResource("StyleBoxFlat_r2qrn")
|
||||
margin_top = 348.0
|
||||
margin_right = 1017.0
|
||||
margin_bottom = 402.0
|
||||
custom_fonts/font = ExtResource( 3 )
|
||||
custom_styles/focus = SubResource( 3 )
|
||||
text = "BUTTON_RETURN"
|
||||
|
||||
[connection signal="pressed" from="VBoxContainer/Testspawn" to="." method="_on_testspawn_pressed"]
|
||||
|
|
|
@ -15,7 +15,7 @@ func _process(delta):
|
|||
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/wip.tscn")
|
||||
get_tree().change_scene("res://backgounds/wip.tscn")
|
||||
#Global.live = 1
|
||||
#Global.gamelevel = randi() % 3
|
||||
#if Global.gamelevel == 0:
|
||||
|
@ -31,7 +31,7 @@ func _level():
|
|||
func _input(event):
|
||||
gamepadtest.new(event)
|
||||
if Input.is_action_just_pressed("ui_cancel"):
|
||||
get_tree().change_scene_to_file("res://title.tscn")
|
||||
get_tree().change_scene("res://title.tscn")
|
||||
# Mouse in viewport coordinates.
|
||||
# if Input.is_key_pressed(KEY_ENTER) || Input.is_joy_button_pressed(0,JOY_BUTTON_B):
|
||||
# print("Mouse Click/Unclick at: ", event.position)
|
||||
|
@ -47,16 +47,16 @@ func _input(event):
|
|||
|
||||
func _on_start_pressed():
|
||||
if Global.dificulty == 0:
|
||||
get_tree().change_scene_to_file("res://levels/ui/newgame.tscn")
|
||||
get_tree().change_scene("res://levels/ui/newgame.tscn")
|
||||
else:
|
||||
Global.live = 1
|
||||
get_tree().change_scene_to_file("res://levels/ui/gameplay.tscn")
|
||||
get_tree().change_scene("res://levels/ui/gameplay.tscn")
|
||||
#_level()
|
||||
#pass # Replace with function body.
|
||||
|
||||
|
||||
func _on_debug_pressed():
|
||||
get_tree().change_scene_to_file("res://levels/ui/settings.tscn")
|
||||
get_tree().change_scene("res://levels/ui/settings.tscn")
|
||||
|
||||
|
||||
func _on_exit_pressed():
|
||||
|
|
|
@ -1,75 +1,68 @@
|
|||
[gd_scene load_steps=7 format=3 uid="uid://s8ttuboef06k"]
|
||||
[gd_scene load_steps=9 format=2]
|
||||
|
||||
[ext_resource type="Script" path="res://levels/ui/tmenu.gd" id="1_w3aym"]
|
||||
[ext_resource type="Texture2D" uid="uid://bxa27c7gnivwx" path="res://backgounds/night-sky-at-ceres.jpg" id="2_sqp06"]
|
||||
[ext_resource type="PackedScene" uid="uid://d31udhuuwrajn" path="res://levels/bottomhud.tscn" id="4_0qcfw"]
|
||||
[ext_resource path="res://backgounds/night-sky-at-ceres.jpg" type="Texture" id=1]
|
||||
[ext_resource path="res://levels/bottomhud.tscn" type="PackedScene" id=2]
|
||||
[ext_resource path="res://fonts/button1.tres" type="DynamicFont" id=3]
|
||||
[ext_resource path="res://levels/ui/tmenu.gd" type="Script" id=4]
|
||||
[ext_resource path="res://fonts/title.tres" type="DynamicFont" id=5]
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_821nm"]
|
||||
bg_color = Color(0, 0.8, 0, 1)
|
||||
[sub_resource type="StyleBoxFlat" id=1]
|
||||
bg_color = Color( 0, 0.8, 0, 1 )
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_6u0xs"]
|
||||
bg_color = Color(0, 0.8, 0, 1)
|
||||
[sub_resource type="StyleBoxFlat" id=2]
|
||||
bg_color = Color( 0, 0.8, 0, 1 )
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_r2qrn"]
|
||||
bg_color = Color(0, 0.8, 0, 1)
|
||||
[sub_resource type="StyleBoxFlat" id=3]
|
||||
bg_color = Color( 0, 0.8, 0, 1 )
|
||||
|
||||
[node name="Tmenu" 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_w3aym")
|
||||
script = ExtResource( 4 )
|
||||
|
||||
[node name="Night Sky" type="TextureRect" parent="."]
|
||||
layout_mode = 0
|
||||
offset_right = 1280.0
|
||||
offset_bottom = 720.0
|
||||
texture = ExtResource("2_sqp06")
|
||||
margin_right = 1280.0
|
||||
margin_bottom = 720.0
|
||||
texture = ExtResource( 1 )
|
||||
|
||||
[node name="Game name" type="Label" parent="."]
|
||||
layout_mode = 0
|
||||
offset_left = 31.0
|
||||
offset_top = 113.0
|
||||
offset_right = 1237.0
|
||||
offset_bottom = 243.0
|
||||
theme_override_font_sizes/font_size = 95
|
||||
margin_top = 55.0
|
||||
margin_right = 1280.0
|
||||
margin_bottom = 185.0
|
||||
custom_fonts/font = ExtResource( 5 )
|
||||
text = "GAME_NAME"
|
||||
horizontal_alignment = 1
|
||||
align = 1
|
||||
valign = 1
|
||||
|
||||
[node name="Bottomhud" parent="." instance=ExtResource("4_0qcfw")]
|
||||
layout_mode = 1
|
||||
[node name="Bottomhud" parent="." instance=ExtResource( 2 )]
|
||||
|
||||
[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 = -322.0
|
||||
offset_top = -362.0
|
||||
offset_right = 322.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 0
|
||||
margin_left = 254.5
|
||||
margin_top = 358.0
|
||||
margin_right = 1036.5
|
||||
margin_bottom = 720.0
|
||||
|
||||
[node name="Start" type="Button" parent="VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 80
|
||||
theme_override_styles/focus = SubResource("StyleBoxFlat_821nm")
|
||||
margin_right = 782.0
|
||||
margin_bottom = 100.0
|
||||
custom_fonts/font = ExtResource( 3 )
|
||||
custom_styles/focus = SubResource( 1 )
|
||||
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")
|
||||
margin_top = 104.0
|
||||
margin_right = 782.0
|
||||
margin_bottom = 204.0
|
||||
custom_fonts/font = ExtResource( 3 )
|
||||
custom_styles/focus = SubResource( 2 )
|
||||
text = "BUTTON_SETTINGS"
|
||||
|
||||
[node name="Exit" type="Button" parent="VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 80
|
||||
theme_override_styles/focus = SubResource("StyleBoxFlat_r2qrn")
|
||||
margin_top = 208.0
|
||||
margin_right = 782.0
|
||||
margin_bottom = 308.0
|
||||
custom_fonts/font = ExtResource( 3 )
|
||||
custom_styles/focus = SubResource( 3 )
|
||||
text = "BUTTON_EXIT"
|
||||
|
||||
[connection signal="pressed" from="VBoxContainer/Start" to="." method="_on_start_pressed"]
|
||||
|
|
|
@ -53,6 +53,7 @@ var nboss
|
|||
var boss
|
||||
var bossbg
|
||||
var ctime
|
||||
var ctimeset
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready():
|
||||
|
@ -133,7 +134,9 @@ func _ready():
|
|||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
func _process(delta):
|
||||
_charrefresh()
|
||||
ctime.set_text(Time.get_time_string_from_system(false).erase(5, 3))
|
||||
ctimeset = Time.get_time_string_from_system(false)
|
||||
ctimeset.erase(5, 3)
|
||||
ctime.set_text(ctimeset)
|
||||
if Global.debug:
|
||||
chealthf.set_text(str(Global.dstats[Global.dparty[Global.dcpchar][0]][0])+"/"+str(Global.mstats[Global.dparty[Global.dcpchar][0]][0]))
|
||||
cstaminaf.set_text(str(Global.dstats[Global.dparty[Global.dcpchar][0]][1])+"/"+str(Global.mstats[Global.dparty[Global.dcpchar][0]][1]))
|
||||
|
@ -181,13 +184,13 @@ func _charrefresh():
|
|||
bstamina1.value = (Global.dstats[Global.dparty[0][0]][1] * 100) / Global.mstats[Global.dparty[0][0]][1]
|
||||
bskill1.value = (Global.dstats[Global.dparty[0][0]][4] * 100) / Global.mstats[Global.dparty[0][0]][4]
|
||||
if Global.dcpchar == 0:
|
||||
focus1.set_color(Color(0, 0, 1, 1))
|
||||
focus1.set_frame_color(Color(0, 0, 1, 1))
|
||||
else:
|
||||
focus1.set_color(Color(1, 1, 1, 1))
|
||||
focus1.set_frame_color(Color(1, 1, 1, 1))
|
||||
else:
|
||||
cn1.set_text("")
|
||||
cf1.texture = null
|
||||
focus1.set_color(Color(1, 1, 1, 1))
|
||||
focus1.set_frame_color(Color(1, 1, 1, 1))
|
||||
chealth1.set_text("0/0")
|
||||
cstamina1.set_text("0/0")
|
||||
cskill1.set_text("0/0")
|
||||
|
@ -204,13 +207,13 @@ func _charrefresh():
|
|||
bstamina2.value = (Global.dstats[Global.dparty[1][0]][1] * 100) / Global.mstats[Global.dparty[1][0]][1]
|
||||
bskill2.value = (Global.dstats[Global.dparty[1][0]][4] * 100) / Global.mstats[Global.dparty[1][0]][4]
|
||||
if Global.dcpchar == 1:
|
||||
focus2.set_color(Color(0, 0, 1, 1))
|
||||
focus2.set_frame_color(Color(0, 0, 1, 1))
|
||||
else:
|
||||
focus2.set_color(Color(1, 1, 1, 1))
|
||||
focus2.set_frame_color(Color(1, 1, 1, 1))
|
||||
else:
|
||||
cn2.set_text("")
|
||||
cf2.texture = null
|
||||
focus2.set_color(Color(1, 1, 1, 1))
|
||||
focus2.set_frame_color(Color(1, 1, 1, 1))
|
||||
chealth2.set_text("0/0")
|
||||
cstamina2.set_text("0/0")
|
||||
cskill2.set_text("0/0")
|
||||
|
@ -227,13 +230,13 @@ func _charrefresh():
|
|||
bstamina3.value = (Global.dstats[Global.dparty[2][0]][1] * 100) / Global.mstats[Global.dparty[2][0]][1]
|
||||
bskill3.value = (Global.dstats[Global.dparty[2][0]][4] * 100) / Global.mstats[Global.dparty[2][0]][4]
|
||||
if Global.dcpchar == 2:
|
||||
focus3.set_color(Color(0, 0, 1, 1))
|
||||
focus3.set_frame_color(Color(0, 0, 1, 1))
|
||||
else:
|
||||
focus3.set_color(Color(1, 1, 1, 1))
|
||||
focus3.set_frame_color(Color(1, 1, 1, 1))
|
||||
else:
|
||||
cn3.set_text("")
|
||||
cf3.texture = null
|
||||
focus3.set_color(Color(1, 1, 1, 1))
|
||||
focus3.set_frame_color(Color(1, 1, 1, 1))
|
||||
chealth3.set_text("0/0")
|
||||
cstamina3.set_text("0/0")
|
||||
cskill3.set_text("0/0")
|
||||
|
@ -250,13 +253,13 @@ func _charrefresh():
|
|||
bstamina4.value = (Global.dstats[Global.dparty[3][0]][1] * 100) / Global.mstats[Global.dparty[3][0]][1]
|
||||
bskill4.value = (Global.dstats[Global.dparty[3][0]][4] * 100) / Global.mstats[Global.dparty[3][0]][4]
|
||||
if Global.dcpchar == 3:
|
||||
focus4.set_color(Color(0, 0, 1, 1))
|
||||
focus4.set_frame_color(Color(0, 0, 1, 1))
|
||||
else:
|
||||
focus4.set_color(Color(1, 1, 1, 1))
|
||||
focus4.set_frame_color(Color(1, 1, 1, 1))
|
||||
else:
|
||||
cn4.set_text("")
|
||||
cf4.texture = null
|
||||
focus4.set_color(Color(1, 1, 1, 1))
|
||||
focus4.set_frame_color(Color(1, 1, 1, 1))
|
||||
chealth4.set_text("0/0")
|
||||
cstamina4.set_text("0/0")
|
||||
cskill4.set_text("0/0")
|
||||
|
@ -274,9 +277,9 @@ func _charrefresh():
|
|||
bstamina1.value = (Global.cstats[Global.party[0][0]][1] * 100) / Global.mstats[Global.party[0][0]][1]
|
||||
bskill1.value = (Global.cstats[Global.party[0][0]][4] * 100) / Global.mstats[Global.party[0][0]][4]
|
||||
if Global.dcpchar == 0:
|
||||
focus1.set_color(Color(0, 0, 1, 1))
|
||||
focus1.set_frame_color(Color(0, 0, 1, 1))
|
||||
else:
|
||||
focus1.set_color(Color(1, 1, 1, 1))
|
||||
focus1.set_frame_color(Color(1, 1, 1, 1))
|
||||
else:
|
||||
cn1.set_text("")
|
||||
cf1.texture = null
|
||||
|
@ -286,7 +289,7 @@ func _charrefresh():
|
|||
bhealth1.value = 0
|
||||
bstamina1.value = 0
|
||||
bskill1.value = 0
|
||||
focus1.set_color(Color(1, 1, 1, 1))
|
||||
focus1.set_frame_color(Color(1, 1, 1, 1))
|
||||
if Global.party[1][0] != null:
|
||||
cn2.set_text(Global.pcnames[Global.party[1][0]])
|
||||
cf2.texture = load(Global.hudfaces[Global.party[1][0]][Global.party[1][1]])
|
||||
|
@ -297,9 +300,9 @@ func _charrefresh():
|
|||
bstamina2.value = (Global.cstats[Global.party[1][0]][1] * 100) / Global.mstats[Global.party[1][0]][1]
|
||||
bskill2.value = (Global.cstats[Global.party[1][0]][4] * 100) / Global.mstats[Global.party[1][0]][4]
|
||||
if Global.dcpchar == 1:
|
||||
focus2.set_color(Color(0, 0, 1, 1))
|
||||
focus2.set_frame_color(Color(0, 0, 1, 1))
|
||||
else:
|
||||
focus2.set_color(Color(1, 1, 1, 1))
|
||||
focus2.set_frame_color(Color(1, 1, 1, 1))
|
||||
else:
|
||||
cn2.set_text("")
|
||||
cf2.texture = null
|
||||
|
@ -309,7 +312,7 @@ func _charrefresh():
|
|||
bhealth2.value = 0
|
||||
bstamina2.value = 0
|
||||
bskill2.value = 0
|
||||
focus2.set_color(Color(1, 1, 1, 1))
|
||||
focus2.set_frame_color(Color(1, 1, 1, 1))
|
||||
if Global.party[2][0] != null:
|
||||
cn3.set_text(Global.pcnames[Global.party[2][0]])
|
||||
cf3.texture = load(Global.hudfaces[Global.party[2][0]][Global.party[2][1]])
|
||||
|
@ -320,9 +323,9 @@ func _charrefresh():
|
|||
bstamina3.value = (Global.cstats[Global.party[2][0]][1] * 100) / Global.mstats[Global.party[2][0]][1]
|
||||
bskill3.value = (Global.cstats[Global.party[2][0]][4] * 100) / Global.mstats[Global.party[2][0]][4]
|
||||
if Global.dcpchar == 2:
|
||||
focus3.set_color(Color(0, 0, 1, 1))
|
||||
focus3.set_frame_color(Color(0, 0, 1, 1))
|
||||
else:
|
||||
focus3.set_color(Color(1, 1, 1, 1))
|
||||
focus3.set_frame_color(Color(1, 1, 1, 1))
|
||||
else:
|
||||
cn3.set_text("")
|
||||
cf3.texture = null
|
||||
|
@ -332,7 +335,7 @@ func _charrefresh():
|
|||
bhealth3.value = 0
|
||||
bstamina3.value = 0
|
||||
bskill3.value = 0
|
||||
focus3.set_color(Color(1, 1, 1, 1))
|
||||
focus3.set_frame_color(Color(1, 1, 1, 1))
|
||||
if Global.party[3][0] != null:
|
||||
cn4.set_text(Global.pcnames[Global.party[3][0]])
|
||||
cf4.texture = load(Global.hudfaces[Global.party[3][0]][Global.party[3][1]])
|
||||
|
@ -343,9 +346,9 @@ func _charrefresh():
|
|||
bstamina4.value = (Global.cstats[Global.party[3][0]][1] * 100) / Global.mstats[Global.party[3][0]][1]
|
||||
bskill4.value = (Global.cstats[Global.party[3][0]][4] * 100) / Global.mstats[Global.party[3][0]][4]
|
||||
if Global.dcpchar == 3:
|
||||
focus4.set_color(Color(0, 0, 1, 1))
|
||||
focus4.set_frame_color(Color(0, 0, 1, 1))
|
||||
else:
|
||||
focus4.set_color(Color(1, 1, 1, 1))
|
||||
focus4.set_frame_color(Color(1, 1, 1, 1))
|
||||
else:
|
||||
cn4.set_text("")
|
||||
cf4.texture = null
|
||||
|
@ -355,7 +358,7 @@ func _charrefresh():
|
|||
bhealth4.value = 0
|
||||
bstamina4.value = 0
|
||||
bskill4.value = 0
|
||||
focus4.set_color(Color(1, 1, 1, 1))
|
||||
focus4.set_frame_color(Color(1, 1, 1, 1))
|
||||
else:
|
||||
if Global.debug:
|
||||
cnf.set_text(Global.pcnames[Global.dparty[Global.dcpchar][0]])
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -20,5 +20,5 @@ func _on_timer_timeout():
|
|||
stage = stage + 1
|
||||
bg.texture = load(backgrounds[stage])
|
||||
else:
|
||||
get_tree().change_scene_to_file("res://backgounds/disclaimer.tscn")
|
||||
get_tree().change_scene("res://backgounds/disclaimer.tscn")
|
||||
#pass # Replace with function body.
|
||||
|
|
|
@ -1,17 +1,16 @@
|
|||
[gd_scene load_steps=2 format=3 uid="uid://bdshjqabxu1aj"]
|
||||
[gd_scene load_steps=2 format=2]
|
||||
|
||||
[ext_resource type="Script" path="res://levels/ui/vmboot.gd" id="1_dhver"]
|
||||
[ext_resource path="res://levels/ui/vmboot.gd" type="Script" id=1]
|
||||
|
||||
[node name="Vmboot" type="Node2D"]
|
||||
script = ExtResource("1_dhver")
|
||||
script = ExtResource( 1 )
|
||||
|
||||
[node name="Timer" type="Timer" parent="."]
|
||||
process_callback = 0
|
||||
wait_time = 3.0
|
||||
autostart = true
|
||||
|
||||
[node name="TextureRect" type="TextureRect" parent="."]
|
||||
offset_right = 40.0
|
||||
offset_bottom = 40.0
|
||||
margin_right = 40.0
|
||||
margin_bottom = 40.0
|
||||
|
||||
[connection signal="timeout" from="Timer" to="." method="_on_timer_timeout"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue