diff --git a/README.md b/README.md index 1e4366c..b590724 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ -An Action Role Playing Game inspired by Alundra, Touhou Project, Megaman X, among others. The only Open Source Genshin Killer and the only game at the moment that offers official bittorrent downloads. This game is made using Virtualx Engine (a godot's fork created for this game). You can find engine source code at https://git.asgardius.company/asgardius/virtualx-engine +An Action Role Playing Game inspired by Alundra, Touhou Project, Megaman X, among others. The only Open Source Genshin Killer and the only game at the moment that offers official bittorrent downloads. This game is made using Godot Engine. You can find engine source code at https://git.asgardius.company/asgardius/virtualx-engine At the moment this game is only a proof of concept. If you want to help send me an email to asgardius@asgardius.company You can find game documentation at https://cloud.asgardius.company/s/3tPKHsMznzMjzEc?path=%2Fgame%20documentation%2FMidori%20in%20the%20Magic%20School diff --git a/backgounds/disclaimer.gd b/backgounds/disclaimer.gd index 654be36..1ebe9f2 100644 --- a/backgounds/disclaimer.gd +++ b/backgounds/disclaimer.gd @@ -21,13 +21,14 @@ func _input(event): # Mouse in viewport coordinates. if Input.is_action_just_pressed("ui_accept"): #print("Mouse Click/Unclick at: ", event.position) - _title() + get_tree().change_scene_to_file("res://title.tscn") + #_title() func _title(): # 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_to_file("res://titl") else: get_tree().change_scene_to_file("res://levels/ui/credits.tscn") #get_tree().root.add_child(title) diff --git a/backgounds/disclaimer.tscn b/backgounds/disclaimer.tscn index fd36ff0..4f031a9 100644 --- a/backgounds/disclaimer.tscn +++ b/backgounds/disclaimer.tscn @@ -21,7 +21,7 @@ theme_override_font_sizes/font_size = 22 text = "Disclaimer Playing with fireworks inside a videogame can give hours of fun, but in real life is dangerous -Life assurance services exists only on fiction" +Life insurance exists only on fiction" [node name="Label2" type="Label" parent="."] offset_left = 346.0 diff --git a/global.gd b/global.gd index 0c10fcc..49c8ec5 100644 --- a/global.gd +++ b/global.gd @@ -35,7 +35,7 @@ var firstrun const musictracks = ["res://music/midorinoakuma.wav", "res://music/seahorse.wav", "res://music/chinesegoat.wav", "res://music/doyoufeelold.wav", "res://music/doyiuneedahealer.wav", "res://music/adayatceres.wav", "res://music/twintroublemakers.wav", "res://music/easyquiz.wav", "res://music/neowave.wav", "res://music/multivectorsubmarines.wav", "res://music/halfgeniegirls.wav", "res://music/rusianmaverickfairy.wav", "res://music/blacksmithofdestruction.wav", "res://music/shininglikefireworks.wav", "res://music/sadtrashcan.wav", "res://music/akikoletter.wav", "res://music/asadcat.wav", "res://music/lilydesire.wav", "res://music/scholartrip.wav", "res://music/quantumice.wav", "res://music/unreeeal.wav"] const sfxtracks = ["res://sfx/braindamage.wav", "res://sfx/gaugefill.wav", "res://sfx/boomboombakudan.wav"] var debug = false -const release = "R0.1.1-alpha" +const release = "R0.1.1-dev" var sk = false var xm = 0 var ym = 0 diff --git a/levels/Testrooms/bullethell.gd b/levels/Testrooms/bullethell.gd index d573635..f40c8ae 100644 --- a/levels/Testrooms/bullethell.gd +++ b/levels/Testrooms/bullethell.gd @@ -14,13 +14,16 @@ func _ready(): # Called every frame. 'delta' is the elapsed time since the previous frame. func _process(delta): - if player.position.y < boss.position.y && player.get_index() > boss.get_index(): - move_child(player, boss.get_index() - 1) - print("move up") - elif player.position.y > boss.position.y && player.get_index() < boss.get_index(): - move_child(player, boss.get_index() + 1) - print("move down") - #pass + pass + +func _physics_process(delta): + if player.velocity.x >= 0 && player.velocity.y >= 0: + if player.position.y < boss.position.y && player.get_index() > boss.get_index(): + move_child(player, boss.get_index() - 1) + print("move up") + elif player.position.y > boss.position.y && player.get_index() < boss.get_index(): + move_child(player, boss.get_index() + 1) + print("move down") func _input(event): if Global.cdialog.size() == 0: diff --git a/levels/Testrooms/lilytest.gd b/levels/Testrooms/lilytest.gd index 55199f1..b28b9a3 100644 --- a/levels/Testrooms/lilytest.gd +++ b/levels/Testrooms/lilytest.gd @@ -11,10 +11,13 @@ func _ready(): # Called every frame. 'delta' is the elapsed time since the previous frame. func _process(delta): - if player.position.y < boss.position.y && player.get_index() > boss.get_index(): - move_child(player, boss.get_index() - 1) - print("move up") - elif player.position.y > boss.position.y && player.get_index() < boss.get_index(): - move_child(player, boss.get_index() + 1) - print("move down") - #pass + pass + +func _physics_process(delta): + if player.velocity.x >= 0 && player.velocity.y >= 0: + if player.position.y < boss.position.y && player.get_index() > boss.get_index(): + move_child(player, boss.get_index() - 1) + print("move up") + elif player.position.y > boss.position.y && player.get_index() < boss.get_index(): + move_child(player, boss.get_index() + 1) + print("move down") diff --git a/levels/bottomhud.tscn b/levels/bottomhud.tscn index a6244d7..4746aad 100644 --- a/levels/bottomhud.tscn +++ b/levels/bottomhud.tscn @@ -11,16 +11,16 @@ anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 -[node name="fps" type="Label" parent="."] -layout_mode = 0 +[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") -[node name="Version" type="Label" parent="."] -layout_mode = 0 +[node name="Version" type="Label" parent="CanvasLayer"] offset_left = 1166.0 offset_top = 691.0 offset_right = 1246.0 diff --git a/levels/ui/debug.tscn b/levels/ui/debug.tscn index 4672354..c50ef14 100644 --- a/levels/ui/debug.tscn +++ b/levels/ui/debug.tscn @@ -23,6 +23,7 @@ grow_vertical = 2 script = ExtResource("1_gm5qw") [node name="Night Sky" type="TextureRect" parent="."] +layout_mode = 0 offset_right = 1280.0 offset_bottom = 720.0 texture = ExtResource("2_1w2er") diff --git a/levels/ui/gamepadtest.tscn b/levels/ui/gamepadtest.tscn index 72b1f12..07583ec 100644 --- a/levels/ui/gamepadtest.tscn +++ b/levels/ui/gamepadtest.tscn @@ -14,6 +14,7 @@ grow_vertical = 2 script = ExtResource("1_w4qrm") [node name="Night Sky" type="TextureRect" parent="."] +layout_mode = 0 offset_right = 1280.0 offset_bottom = 720.0 texture = ExtResource("2_kcf5a") diff --git a/levels/ui/musictest.tscn b/levels/ui/musictest.tscn index a3eb6d1..29a4c0d 100644 --- a/levels/ui/musictest.tscn +++ b/levels/ui/musictest.tscn @@ -23,6 +23,7 @@ grow_vertical = 2 script = ExtResource("1_mulrj") [node name="Night Sky" type="TextureRect" parent="."] +layout_mode = 0 offset_right = 1280.0 offset_bottom = 720.0 texture = ExtResource("2_jgdg2") diff --git a/levels/ui/scene.tscn b/levels/ui/scene.tscn index 60cf0b6..1753d99 100644 --- a/levels/ui/scene.tscn +++ b/levels/ui/scene.tscn @@ -20,6 +20,7 @@ grow_vertical = 2 script = ExtResource("1_hxcrn") [node name="Night Sky" type="TextureRect" parent="."] +layout_mode = 0 offset_right = 1280.0 offset_bottom = 720.0 texture = ExtResource("2_jnmob") diff --git a/levels/ui/sfxtest.tscn b/levels/ui/sfxtest.tscn index e0182c4..90b203b 100644 --- a/levels/ui/sfxtest.tscn +++ b/levels/ui/sfxtest.tscn @@ -20,6 +20,7 @@ grow_vertical = 2 script = ExtResource("1_l1lbb") [node name="Night Sky" type="TextureRect" parent="."] +layout_mode = 0 offset_right = 1280.0 offset_bottom = 720.0 texture = ExtResource("2_uuurj") diff --git a/levels/ui/talk.gd b/levels/ui/talk.gd index f3da526..6d59768 100644 --- a/levels/ui/talk.gd +++ b/levels/ui/talk.gd @@ -7,9 +7,9 @@ var pface var press = false # Called when the node enters the scene tree for the first time. func _ready(): - cname = $Cname - dialog = $Dialog - pface = $Playerface + cname = $CanvasLayer/Cname + dialog = $CanvasLayer/Dialog + pface = $CanvasLayer/Playerface if Global.cdialog[dindex][1]: cname.set_text(Global.pcnames[Global.cdialog[dindex][2]]) pface.texture = load(Global.pcfaces[Global.cdialog[dindex][2]][Global.cdialog[dindex][3]]) diff --git a/levels/ui/talk.tscn b/levels/ui/talk.tscn index 4e1793e..33a2782 100644 --- a/levels/ui/talk.tscn +++ b/levels/ui/talk.tscn @@ -6,39 +6,41 @@ [node name="Talk" type="Node2D"] script = ExtResource("1_c5y35") -[node name="Playerface" type="TextureRect" parent="."] +[node name="CanvasLayer" type="CanvasLayer" parent="."] + +[node name="Playerface" type="TextureRect" parent="CanvasLayer"] offset_left = 511.0 offset_top = 35.0 offset_right = 767.0 offset_bottom = 291.0 texture = ExtResource("1_4l8il") -[node name="Continue" type="ColorRect" parent="."] +[node name="Continue" type="ColorRect" parent="CanvasLayer"] offset_left = 39.0 offset_top = 118.0 offset_right = 276.0 offset_bottom = 177.0 color = Color(0.254902, 0.254902, 0.254902, 1) -[node name="Continuetext" type="Label" parent="."] +[node name="Continuetext" type="Label" parent="CanvasLayer"] offset_left = 39.0 offset_top = 119.0 offset_right = 276.0 -offset_bottom = 177.0 +offset_bottom = 178.0 theme_override_font_sizes/font_size = 20 text = "Press enter or B to continue" horizontal_alignment = 1 vertical_alignment = 1 -[node name="Textbox" type="ColorRect" parent="."] +[node name="Textbox" type="ColorRect" parent="CanvasLayer"] offset_left = 41.0 offset_top = 319.0 offset_right = 1243.0 offset_bottom = 681.0 color = Color(0.254902, 0.254902, 0.254902, 1) -[node name="Cname" type="Label" parent="."] +[node name="Cname" type="Label" parent="CanvasLayer"] offset_left = 41.0 offset_top = 319.0 offset_right = 1243.0 @@ -48,7 +50,7 @@ text = "Character name goes here" horizontal_alignment = 1 vertical_alignment = 1 -[node name="Dialog" type="Label" parent="."] +[node name="Dialog" type="Label" parent="CanvasLayer"] offset_left = 41.0 offset_top = 377.0 offset_right = 1243.0 diff --git a/levels/ui/testrooms.tscn b/levels/ui/testrooms.tscn index d9adc9c..5bf46a7 100644 --- a/levels/ui/testrooms.tscn +++ b/levels/ui/testrooms.tscn @@ -20,6 +20,7 @@ grow_vertical = 2 script = ExtResource("1_p5nnr") [node name="Night Sky" type="TextureRect" parent="."] +layout_mode = 0 offset_right = 1280.0 offset_bottom = 720.0 texture = ExtResource("2_vkpo3") diff --git a/levels/ui/tmenu.tscn b/levels/ui/tmenu.tscn index e44c589..6928095 100644 --- a/levels/ui/tmenu.tscn +++ b/levels/ui/tmenu.tscn @@ -23,6 +23,7 @@ grow_vertical = 2 script = ExtResource("1_w3aym") [node name="Night Sky" type="TextureRect" parent="."] +layout_mode = 0 offset_right = 1280.0 offset_bottom = 720.0 texture = ExtResource("2_sqp06") diff --git a/levels/ui/tophud.gd b/levels/ui/tophud.gd index 67a93da..350920b 100644 --- a/levels/ui/tophud.gd +++ b/levels/ui/tophud.gd @@ -20,24 +20,24 @@ var topminibg # Called when the node enters the scene tree for the first time. func _ready(): - topleft = $Topleft - topleftbg = $Topleftbg - topmini = $Topmini - topminibg = $Topminibg - cn1 = $Topleft/Character1/VBoxContainer/HBoxContainer/Label - cn2 = $Topleft/Character2/VBoxContainer/HBoxContainer/Label - cn3 = $Topleft/Character3/VBoxContainer/HBoxContainer/Label - cn4 = $Topleft/Character4/VBoxContainer/HBoxContainer/Label - cf1 = $Topleft/Character1/TextureRect - cf2 = $Topleft/Character2/TextureRect - cf3 = $Topleft/Character3/TextureRect - cf4 = $Topleft/Character4/TextureRect - focus1 = $Topleft/Character1/ColorRect2 - focus2 = $Topleft/Character2/ColorRect2 - focus3 = $Topleft/Character3/ColorRect2 - focus4 = $Topleft/Character4/ColorRect2 - cnf = $Topmini/VBoxContainer/HBoxContainer/Label - cff = $Topmini/TextureRect + topleft = $CanvasLayer/Topleft + topleftbg = $CanvasLayer/Topleftbg + topmini = $CanvasLayer/Topmini + topminibg = $CanvasLayer/Topminibg + cn1 = $CanvasLayer/Topleft/Character1/VBoxContainer/HBoxContainer/Label + cn2 = $CanvasLayer/Topleft/Character2/VBoxContainer/HBoxContainer/Label + cn3 = $CanvasLayer/Topleft/Character3/VBoxContainer/HBoxContainer/Label + cn4 = $CanvasLayer/Topleft/Character4/VBoxContainer/HBoxContainer/Label + cf1 = $CanvasLayer/Topleft/Character1/TextureRect + cf2 = $CanvasLayer/Topleft/Character2/TextureRect + cf3 = $CanvasLayer/Topleft/Character3/TextureRect + cf4 = $CanvasLayer/Topleft/Character4/TextureRect + focus1 = $CanvasLayer/Topleft/Character1/ColorRect2 + focus2 = $CanvasLayer/Topleft/Character2/ColorRect2 + focus3 = $CanvasLayer/Topleft/Character3/ColorRect2 + focus4 = $CanvasLayer/Topleft/Character4/ColorRect2 + cnf = $CanvasLayer/Topmini/VBoxContainer/HBoxContainer/Label + cff = $CanvasLayer/Topmini/TextureRect topleft.visible = false topleftbg.visible = false if Global.mangohud: diff --git a/levels/ui/tophud.tscn b/levels/ui/tophud.tscn index 96a0ca2..606f579 100644 --- a/levels/ui/tophud.tscn +++ b/levels/ui/tophud.tscn @@ -23,454 +23,452 @@ grow_horizontal = 2 grow_vertical = 2 script = ExtResource("1_pntuv") -[node name="Topminibg" type="ColorRect" parent="."] -layout_mode = 0 +[node name="CanvasLayer" type="CanvasLayer" parent="."] + +[node name="Topminibg" type="ColorRect" parent="CanvasLayer"] offset_right = 377.0 offset_bottom = 116.0 color = Color(0.254902, 0.254902, 0.254902, 1) -[node name="Topmini" type="HBoxContainer" parent="."] -layout_mode = 2 +[node name="Topmini" type="HBoxContainer" parent="CanvasLayer"] offset_right = 377.0 offset_bottom = 116.0 -[node name="TextureRect" type="TextureRect" parent="Topmini"] +[node name="TextureRect" type="TextureRect" parent="CanvasLayer/Topmini"] custom_minimum_size = Vector2(116, 116) layout_mode = 2 -[node name="VBoxContainer" type="VBoxContainer" parent="Topmini"] +[node name="VBoxContainer" type="VBoxContainer" parent="CanvasLayer/Topmini"] layout_mode = 2 -[node name="HBoxContainer" type="HBoxContainer" parent="Topmini/VBoxContainer"] +[node name="HBoxContainer" type="HBoxContainer" parent="CanvasLayer/Topmini/VBoxContainer"] layout_mode = 2 -[node name="Label" type="Label" parent="Topmini/VBoxContainer/HBoxContainer"] +[node name="Label" type="Label" parent="CanvasLayer/Topmini/VBoxContainer/HBoxContainer"] custom_minimum_size = Vector2(174, 0) layout_mode = 2 text = "Name" -[node name="Label3" type="Label" parent="Topmini/VBoxContainer/HBoxContainer"] +[node name="Label3" type="Label" parent="CanvasLayer/Topmini/VBoxContainer/HBoxContainer"] layout_mode = 2 text = "R1" horizontal_alignment = 2 -[node name="HBoxContainer2" type="HBoxContainer" parent="Topmini/VBoxContainer"] +[node name="HBoxContainer2" type="HBoxContainer" parent="CanvasLayer/Topmini/VBoxContainer"] layout_mode = 2 -[node name="Label" type="Label" parent="Topmini/VBoxContainer/HBoxContainer2"] +[node name="Label" type="Label" parent="CanvasLayer/Topmini/VBoxContainer/HBoxContainer2"] custom_minimum_size = Vector2(70, 0) layout_mode = 2 text = "Health" -[node name="ProgressBar" type="ProgressBar" parent="Topmini/VBoxContainer/HBoxContainer2"] +[node name="ProgressBar" type="ProgressBar" parent="CanvasLayer/Topmini/VBoxContainer/HBoxContainer2"] custom_minimum_size = Vector2(100, 0) layout_mode = 2 theme_override_styles/background = SubResource("StyleBoxFlat_ualpu") theme_override_styles/fill = SubResource("StyleBoxFlat_patnr") -[node name="Label2" type="Label" parent="Topmini/VBoxContainer/HBoxContainer2"] +[node name="Label2" type="Label" parent="CanvasLayer/Topmini/VBoxContainer/HBoxContainer2"] custom_minimum_size = Vector2(63, 0) layout_mode = 2 text = "100/100" horizontal_alignment = 2 -[node name="HBoxContainer3" type="HBoxContainer" parent="Topmini/VBoxContainer"] +[node name="HBoxContainer3" type="HBoxContainer" parent="CanvasLayer/Topmini/VBoxContainer"] layout_mode = 2 -[node name="Label" type="Label" parent="Topmini/VBoxContainer/HBoxContainer3"] +[node name="Label" type="Label" parent="CanvasLayer/Topmini/VBoxContainer/HBoxContainer3"] custom_minimum_size = Vector2(70, 0) layout_mode = 2 text = "Stamina" -[node name="ProgressBar" type="ProgressBar" parent="Topmini/VBoxContainer/HBoxContainer3"] +[node name="ProgressBar" type="ProgressBar" parent="CanvasLayer/Topmini/VBoxContainer/HBoxContainer3"] custom_minimum_size = Vector2(100, 0) layout_mode = 2 theme_override_styles/background = SubResource("StyleBoxFlat_05pau") theme_override_styles/fill = SubResource("StyleBoxFlat_u3vj7") -[node name="Label2" type="Label" parent="Topmini/VBoxContainer/HBoxContainer3"] +[node name="Label2" type="Label" parent="CanvasLayer/Topmini/VBoxContainer/HBoxContainer3"] custom_minimum_size = Vector2(63, 0) layout_mode = 2 text = "100/100" horizontal_alignment = 2 -[node name="HBoxContainer4" type="HBoxContainer" parent="Topmini/VBoxContainer"] +[node name="HBoxContainer4" type="HBoxContainer" parent="CanvasLayer/Topmini/VBoxContainer"] layout_mode = 2 -[node name="Label" type="Label" parent="Topmini/VBoxContainer/HBoxContainer4"] +[node name="Label" type="Label" parent="CanvasLayer/Topmini/VBoxContainer/HBoxContainer4"] custom_minimum_size = Vector2(70, 0) layout_mode = 2 text = "Skill" -[node name="ProgressBar" type="ProgressBar" parent="Topmini/VBoxContainer/HBoxContainer4"] +[node name="ProgressBar" type="ProgressBar" parent="CanvasLayer/Topmini/VBoxContainer/HBoxContainer4"] custom_minimum_size = Vector2(100, 0) layout_mode = 2 theme_override_styles/background = SubResource("StyleBoxFlat_ftyws") -[node name="Label2" type="Label" parent="Topmini/VBoxContainer/HBoxContainer4"] +[node name="Label2" type="Label" parent="CanvasLayer/Topmini/VBoxContainer/HBoxContainer4"] custom_minimum_size = Vector2(63, 0) layout_mode = 2 text = "100/100" horizontal_alignment = 2 -[node name="ColorRect2" type="ColorRect" parent="Topmini"] +[node name="ColorRect2" type="ColorRect" parent="CanvasLayer/Topmini"] custom_minimum_size = Vector2(12, 64) layout_mode = 2 color = Color(0, 0, 1, 1) -[node name="Topleftbg" type="ColorRect" parent="."] +[node name="Topleftbg" type="ColorRect" parent="CanvasLayer"] visible = false -layout_mode = 0 offset_right = 377.0 offset_bottom = 476.0 color = Color(0.254902, 0.254902, 0.254902, 1) -[node name="Topleft" type="VBoxContainer" parent="."] +[node name="Topleft" type="VBoxContainer" parent="CanvasLayer"] visible = false -layout_mode = 0 offset_right = 377.0 offset_bottom = 476.0 -[node name="Character1" type="HBoxContainer" parent="Topleft"] +[node name="Character1" type="HBoxContainer" parent="CanvasLayer/Topleft"] layout_mode = 2 -[node name="TextureRect" type="TextureRect" parent="Topleft/Character1"] +[node name="TextureRect" type="TextureRect" parent="CanvasLayer/Topleft/Character1"] custom_minimum_size = Vector2(116, 116) layout_mode = 2 -[node name="VBoxContainer" type="VBoxContainer" parent="Topleft/Character1"] +[node name="VBoxContainer" type="VBoxContainer" parent="CanvasLayer/Topleft/Character1"] layout_mode = 2 -[node name="HBoxContainer" type="HBoxContainer" parent="Topleft/Character1/VBoxContainer"] +[node name="HBoxContainer" type="HBoxContainer" parent="CanvasLayer/Topleft/Character1/VBoxContainer"] layout_mode = 2 -[node name="Label" type="Label" parent="Topleft/Character1/VBoxContainer/HBoxContainer"] +[node name="Label" type="Label" parent="CanvasLayer/Topleft/Character1/VBoxContainer/HBoxContainer"] custom_minimum_size = Vector2(174, 0) layout_mode = 2 text = "Name" -[node name="Label3" type="Label" parent="Topleft/Character1/VBoxContainer/HBoxContainer"] +[node name="Label3" type="Label" parent="CanvasLayer/Topleft/Character1/VBoxContainer/HBoxContainer"] layout_mode = 2 text = "R1 + ↑" horizontal_alignment = 2 -[node name="HBoxContainer2" type="HBoxContainer" parent="Topleft/Character1/VBoxContainer"] +[node name="HBoxContainer2" type="HBoxContainer" parent="CanvasLayer/Topleft/Character1/VBoxContainer"] layout_mode = 2 -[node name="Label" type="Label" parent="Topleft/Character1/VBoxContainer/HBoxContainer2"] +[node name="Label" type="Label" parent="CanvasLayer/Topleft/Character1/VBoxContainer/HBoxContainer2"] custom_minimum_size = Vector2(70, 0) layout_mode = 2 text = "Health" -[node name="ProgressBar" type="ProgressBar" parent="Topleft/Character1/VBoxContainer/HBoxContainer2"] +[node name="ProgressBar" type="ProgressBar" parent="CanvasLayer/Topleft/Character1/VBoxContainer/HBoxContainer2"] custom_minimum_size = Vector2(100, 0) layout_mode = 2 theme_override_styles/background = SubResource("StyleBoxFlat_ualpu") theme_override_styles/fill = SubResource("StyleBoxFlat_patnr") -[node name="Label2" type="Label" parent="Topleft/Character1/VBoxContainer/HBoxContainer2"] +[node name="Label2" type="Label" parent="CanvasLayer/Topleft/Character1/VBoxContainer/HBoxContainer2"] custom_minimum_size = Vector2(63, 0) layout_mode = 2 text = "100/100" horizontal_alignment = 2 -[node name="HBoxContainer3" type="HBoxContainer" parent="Topleft/Character1/VBoxContainer"] +[node name="HBoxContainer3" type="HBoxContainer" parent="CanvasLayer/Topleft/Character1/VBoxContainer"] layout_mode = 2 -[node name="Label" type="Label" parent="Topleft/Character1/VBoxContainer/HBoxContainer3"] +[node name="Label" type="Label" parent="CanvasLayer/Topleft/Character1/VBoxContainer/HBoxContainer3"] custom_minimum_size = Vector2(70, 0) layout_mode = 2 text = "Stamina" -[node name="ProgressBar" type="ProgressBar" parent="Topleft/Character1/VBoxContainer/HBoxContainer3"] +[node name="ProgressBar" type="ProgressBar" parent="CanvasLayer/Topleft/Character1/VBoxContainer/HBoxContainer3"] custom_minimum_size = Vector2(100, 0) layout_mode = 2 theme_override_styles/background = SubResource("StyleBoxFlat_05pau") theme_override_styles/fill = SubResource("StyleBoxFlat_u3vj7") -[node name="Label2" type="Label" parent="Topleft/Character1/VBoxContainer/HBoxContainer3"] +[node name="Label2" type="Label" parent="CanvasLayer/Topleft/Character1/VBoxContainer/HBoxContainer3"] custom_minimum_size = Vector2(63, 0) layout_mode = 2 text = "100/100" horizontal_alignment = 2 -[node name="HBoxContainer4" type="HBoxContainer" parent="Topleft/Character1/VBoxContainer"] +[node name="HBoxContainer4" type="HBoxContainer" parent="CanvasLayer/Topleft/Character1/VBoxContainer"] layout_mode = 2 -[node name="Label" type="Label" parent="Topleft/Character1/VBoxContainer/HBoxContainer4"] +[node name="Label" type="Label" parent="CanvasLayer/Topleft/Character1/VBoxContainer/HBoxContainer4"] custom_minimum_size = Vector2(70, 0) layout_mode = 2 text = "Skill" -[node name="ProgressBar" type="ProgressBar" parent="Topleft/Character1/VBoxContainer/HBoxContainer4"] +[node name="ProgressBar" type="ProgressBar" parent="CanvasLayer/Topleft/Character1/VBoxContainer/HBoxContainer4"] custom_minimum_size = Vector2(100, 0) layout_mode = 2 theme_override_styles/background = SubResource("StyleBoxFlat_ftyws") -[node name="Label2" type="Label" parent="Topleft/Character1/VBoxContainer/HBoxContainer4"] +[node name="Label2" type="Label" parent="CanvasLayer/Topleft/Character1/VBoxContainer/HBoxContainer4"] custom_minimum_size = Vector2(63, 0) layout_mode = 2 text = "100/100" horizontal_alignment = 2 -[node name="ColorRect2" type="ColorRect" parent="Topleft/Character1"] +[node name="ColorRect2" type="ColorRect" parent="CanvasLayer/Topleft/Character1"] custom_minimum_size = Vector2(12, 64) layout_mode = 2 -[node name="Character2" type="HBoxContainer" parent="Topleft"] +[node name="Character2" type="HBoxContainer" parent="CanvasLayer/Topleft"] layout_mode = 2 -[node name="TextureRect" type="TextureRect" parent="Topleft/Character2"] +[node name="TextureRect" type="TextureRect" parent="CanvasLayer/Topleft/Character2"] custom_minimum_size = Vector2(116, 116) layout_mode = 2 -[node name="VBoxContainer" type="VBoxContainer" parent="Topleft/Character2"] +[node name="VBoxContainer" type="VBoxContainer" parent="CanvasLayer/Topleft/Character2"] layout_mode = 2 -[node name="HBoxContainer" type="HBoxContainer" parent="Topleft/Character2/VBoxContainer"] +[node name="HBoxContainer" type="HBoxContainer" parent="CanvasLayer/Topleft/Character2/VBoxContainer"] layout_mode = 2 -[node name="Label" type="Label" parent="Topleft/Character2/VBoxContainer/HBoxContainer"] +[node name="Label" type="Label" parent="CanvasLayer/Topleft/Character2/VBoxContainer/HBoxContainer"] custom_minimum_size = Vector2(174, 0) layout_mode = 2 text = "Name" -[node name="Label3" type="Label" parent="Topleft/Character2/VBoxContainer/HBoxContainer"] +[node name="Label3" type="Label" parent="CanvasLayer/Topleft/Character2/VBoxContainer/HBoxContainer"] layout_mode = 2 text = "R1 + →" horizontal_alignment = 2 -[node name="HBoxContainer2" type="HBoxContainer" parent="Topleft/Character2/VBoxContainer"] +[node name="HBoxContainer2" type="HBoxContainer" parent="CanvasLayer/Topleft/Character2/VBoxContainer"] layout_mode = 2 -[node name="Label" type="Label" parent="Topleft/Character2/VBoxContainer/HBoxContainer2"] +[node name="Label" type="Label" parent="CanvasLayer/Topleft/Character2/VBoxContainer/HBoxContainer2"] custom_minimum_size = Vector2(70, 0) layout_mode = 2 text = "Health" -[node name="ProgressBar" type="ProgressBar" parent="Topleft/Character2/VBoxContainer/HBoxContainer2"] +[node name="ProgressBar" type="ProgressBar" parent="CanvasLayer/Topleft/Character2/VBoxContainer/HBoxContainer2"] custom_minimum_size = Vector2(100, 0) layout_mode = 2 theme_override_styles/background = SubResource("StyleBoxFlat_ualpu") theme_override_styles/fill = SubResource("StyleBoxFlat_patnr") -[node name="Label2" type="Label" parent="Topleft/Character2/VBoxContainer/HBoxContainer2"] +[node name="Label2" type="Label" parent="CanvasLayer/Topleft/Character2/VBoxContainer/HBoxContainer2"] custom_minimum_size = Vector2(63, 0) layout_mode = 2 text = "100/100" horizontal_alignment = 2 -[node name="HBoxContainer3" type="HBoxContainer" parent="Topleft/Character2/VBoxContainer"] +[node name="HBoxContainer3" type="HBoxContainer" parent="CanvasLayer/Topleft/Character2/VBoxContainer"] layout_mode = 2 -[node name="Label" type="Label" parent="Topleft/Character2/VBoxContainer/HBoxContainer3"] +[node name="Label" type="Label" parent="CanvasLayer/Topleft/Character2/VBoxContainer/HBoxContainer3"] custom_minimum_size = Vector2(70, 0) layout_mode = 2 text = "Stamina" -[node name="ProgressBar" type="ProgressBar" parent="Topleft/Character2/VBoxContainer/HBoxContainer3"] +[node name="ProgressBar" type="ProgressBar" parent="CanvasLayer/Topleft/Character2/VBoxContainer/HBoxContainer3"] custom_minimum_size = Vector2(100, 0) layout_mode = 2 theme_override_styles/background = SubResource("StyleBoxFlat_05pau") theme_override_styles/fill = SubResource("StyleBoxFlat_u3vj7") -[node name="Label2" type="Label" parent="Topleft/Character2/VBoxContainer/HBoxContainer3"] +[node name="Label2" type="Label" parent="CanvasLayer/Topleft/Character2/VBoxContainer/HBoxContainer3"] custom_minimum_size = Vector2(63, 0) layout_mode = 2 text = "100/100" horizontal_alignment = 2 -[node name="HBoxContainer4" type="HBoxContainer" parent="Topleft/Character2/VBoxContainer"] +[node name="HBoxContainer4" type="HBoxContainer" parent="CanvasLayer/Topleft/Character2/VBoxContainer"] layout_mode = 2 -[node name="Label" type="Label" parent="Topleft/Character2/VBoxContainer/HBoxContainer4"] +[node name="Label" type="Label" parent="CanvasLayer/Topleft/Character2/VBoxContainer/HBoxContainer4"] custom_minimum_size = Vector2(70, 0) layout_mode = 2 text = "Skill" -[node name="ProgressBar" type="ProgressBar" parent="Topleft/Character2/VBoxContainer/HBoxContainer4"] +[node name="ProgressBar" type="ProgressBar" parent="CanvasLayer/Topleft/Character2/VBoxContainer/HBoxContainer4"] custom_minimum_size = Vector2(100, 0) layout_mode = 2 theme_override_styles/background = SubResource("StyleBoxFlat_ftyws") -[node name="Label2" type="Label" parent="Topleft/Character2/VBoxContainer/HBoxContainer4"] +[node name="Label2" type="Label" parent="CanvasLayer/Topleft/Character2/VBoxContainer/HBoxContainer4"] custom_minimum_size = Vector2(63, 0) layout_mode = 2 text = "100/100" horizontal_alignment = 2 -[node name="ColorRect2" type="ColorRect" parent="Topleft/Character2"] +[node name="ColorRect2" type="ColorRect" parent="CanvasLayer/Topleft/Character2"] custom_minimum_size = Vector2(12, 64) layout_mode = 2 -[node name="Character3" type="HBoxContainer" parent="Topleft"] +[node name="Character3" type="HBoxContainer" parent="CanvasLayer/Topleft"] layout_mode = 2 -[node name="TextureRect" type="TextureRect" parent="Topleft/Character3"] +[node name="TextureRect" type="TextureRect" parent="CanvasLayer/Topleft/Character3"] custom_minimum_size = Vector2(116, 116) layout_mode = 2 -[node name="VBoxContainer" type="VBoxContainer" parent="Topleft/Character3"] +[node name="VBoxContainer" type="VBoxContainer" parent="CanvasLayer/Topleft/Character3"] layout_mode = 2 -[node name="HBoxContainer" type="HBoxContainer" parent="Topleft/Character3/VBoxContainer"] +[node name="HBoxContainer" type="HBoxContainer" parent="CanvasLayer/Topleft/Character3/VBoxContainer"] layout_mode = 2 -[node name="Label" type="Label" parent="Topleft/Character3/VBoxContainer/HBoxContainer"] +[node name="Label" type="Label" parent="CanvasLayer/Topleft/Character3/VBoxContainer/HBoxContainer"] custom_minimum_size = Vector2(174, 0) layout_mode = 2 text = "Name" -[node name="Label3" type="Label" parent="Topleft/Character3/VBoxContainer/HBoxContainer"] +[node name="Label3" type="Label" parent="CanvasLayer/Topleft/Character3/VBoxContainer/HBoxContainer"] layout_mode = 2 text = "R1 + ↓" horizontal_alignment = 2 -[node name="HBoxContainer2" type="HBoxContainer" parent="Topleft/Character3/VBoxContainer"] +[node name="HBoxContainer2" type="HBoxContainer" parent="CanvasLayer/Topleft/Character3/VBoxContainer"] layout_mode = 2 -[node name="Label" type="Label" parent="Topleft/Character3/VBoxContainer/HBoxContainer2"] +[node name="Label" type="Label" parent="CanvasLayer/Topleft/Character3/VBoxContainer/HBoxContainer2"] custom_minimum_size = Vector2(70, 0) layout_mode = 2 text = "Health" -[node name="ProgressBar" type="ProgressBar" parent="Topleft/Character3/VBoxContainer/HBoxContainer2"] +[node name="ProgressBar" type="ProgressBar" parent="CanvasLayer/Topleft/Character3/VBoxContainer/HBoxContainer2"] custom_minimum_size = Vector2(100, 0) layout_mode = 2 theme_override_styles/background = SubResource("StyleBoxFlat_ualpu") theme_override_styles/fill = SubResource("StyleBoxFlat_patnr") -[node name="Label2" type="Label" parent="Topleft/Character3/VBoxContainer/HBoxContainer2"] +[node name="Label2" type="Label" parent="CanvasLayer/Topleft/Character3/VBoxContainer/HBoxContainer2"] custom_minimum_size = Vector2(63, 0) layout_mode = 2 text = "100/100" horizontal_alignment = 2 -[node name="HBoxContainer3" type="HBoxContainer" parent="Topleft/Character3/VBoxContainer"] +[node name="HBoxContainer3" type="HBoxContainer" parent="CanvasLayer/Topleft/Character3/VBoxContainer"] layout_mode = 2 -[node name="Label" type="Label" parent="Topleft/Character3/VBoxContainer/HBoxContainer3"] +[node name="Label" type="Label" parent="CanvasLayer/Topleft/Character3/VBoxContainer/HBoxContainer3"] custom_minimum_size = Vector2(70, 0) layout_mode = 2 text = "Stamina" -[node name="ProgressBar" type="ProgressBar" parent="Topleft/Character3/VBoxContainer/HBoxContainer3"] +[node name="ProgressBar" type="ProgressBar" parent="CanvasLayer/Topleft/Character3/VBoxContainer/HBoxContainer3"] custom_minimum_size = Vector2(100, 0) layout_mode = 2 theme_override_styles/background = SubResource("StyleBoxFlat_05pau") theme_override_styles/fill = SubResource("StyleBoxFlat_u3vj7") -[node name="Label2" type="Label" parent="Topleft/Character3/VBoxContainer/HBoxContainer3"] +[node name="Label2" type="Label" parent="CanvasLayer/Topleft/Character3/VBoxContainer/HBoxContainer3"] custom_minimum_size = Vector2(63, 0) layout_mode = 2 text = "100/100" horizontal_alignment = 2 -[node name="HBoxContainer4" type="HBoxContainer" parent="Topleft/Character3/VBoxContainer"] +[node name="HBoxContainer4" type="HBoxContainer" parent="CanvasLayer/Topleft/Character3/VBoxContainer"] layout_mode = 2 -[node name="Label" type="Label" parent="Topleft/Character3/VBoxContainer/HBoxContainer4"] +[node name="Label" type="Label" parent="CanvasLayer/Topleft/Character3/VBoxContainer/HBoxContainer4"] custom_minimum_size = Vector2(70, 0) layout_mode = 2 text = "Skill" -[node name="ProgressBar" type="ProgressBar" parent="Topleft/Character3/VBoxContainer/HBoxContainer4"] +[node name="ProgressBar" type="ProgressBar" parent="CanvasLayer/Topleft/Character3/VBoxContainer/HBoxContainer4"] custom_minimum_size = Vector2(100, 0) layout_mode = 2 theme_override_styles/background = SubResource("StyleBoxFlat_ftyws") -[node name="Label2" type="Label" parent="Topleft/Character3/VBoxContainer/HBoxContainer4"] +[node name="Label2" type="Label" parent="CanvasLayer/Topleft/Character3/VBoxContainer/HBoxContainer4"] custom_minimum_size = Vector2(63, 0) layout_mode = 2 text = "100/100" horizontal_alignment = 2 -[node name="ColorRect2" type="ColorRect" parent="Topleft/Character3"] +[node name="ColorRect2" type="ColorRect" parent="CanvasLayer/Topleft/Character3"] custom_minimum_size = Vector2(12, 64) layout_mode = 2 -[node name="Character4" type="HBoxContainer" parent="Topleft"] +[node name="Character4" type="HBoxContainer" parent="CanvasLayer/Topleft"] layout_mode = 2 -[node name="TextureRect" type="TextureRect" parent="Topleft/Character4"] +[node name="TextureRect" type="TextureRect" parent="CanvasLayer/Topleft/Character4"] custom_minimum_size = Vector2(116, 116) layout_mode = 2 -[node name="VBoxContainer" type="VBoxContainer" parent="Topleft/Character4"] +[node name="VBoxContainer" type="VBoxContainer" parent="CanvasLayer/Topleft/Character4"] layout_mode = 2 -[node name="HBoxContainer" type="HBoxContainer" parent="Topleft/Character4/VBoxContainer"] +[node name="HBoxContainer" type="HBoxContainer" parent="CanvasLayer/Topleft/Character4/VBoxContainer"] layout_mode = 2 -[node name="Label" type="Label" parent="Topleft/Character4/VBoxContainer/HBoxContainer"] +[node name="Label" type="Label" parent="CanvasLayer/Topleft/Character4/VBoxContainer/HBoxContainer"] custom_minimum_size = Vector2(174, 0) layout_mode = 2 text = "Name" -[node name="Label3" type="Label" parent="Topleft/Character4/VBoxContainer/HBoxContainer"] +[node name="Label3" type="Label" parent="CanvasLayer/Topleft/Character4/VBoxContainer/HBoxContainer"] layout_mode = 2 text = "R1 + ←" horizontal_alignment = 2 -[node name="HBoxContainer2" type="HBoxContainer" parent="Topleft/Character4/VBoxContainer"] +[node name="HBoxContainer2" type="HBoxContainer" parent="CanvasLayer/Topleft/Character4/VBoxContainer"] layout_mode = 2 -[node name="Label" type="Label" parent="Topleft/Character4/VBoxContainer/HBoxContainer2"] +[node name="Label" type="Label" parent="CanvasLayer/Topleft/Character4/VBoxContainer/HBoxContainer2"] custom_minimum_size = Vector2(70, 0) layout_mode = 2 text = "Health" -[node name="ProgressBar" type="ProgressBar" parent="Topleft/Character4/VBoxContainer/HBoxContainer2"] +[node name="ProgressBar" type="ProgressBar" parent="CanvasLayer/Topleft/Character4/VBoxContainer/HBoxContainer2"] custom_minimum_size = Vector2(100, 0) layout_mode = 2 theme_override_styles/background = SubResource("StyleBoxFlat_ualpu") theme_override_styles/fill = SubResource("StyleBoxFlat_patnr") -[node name="Label2" type="Label" parent="Topleft/Character4/VBoxContainer/HBoxContainer2"] +[node name="Label2" type="Label" parent="CanvasLayer/Topleft/Character4/VBoxContainer/HBoxContainer2"] custom_minimum_size = Vector2(63, 0) layout_mode = 2 text = "100/100" horizontal_alignment = 2 -[node name="HBoxContainer3" type="HBoxContainer" parent="Topleft/Character4/VBoxContainer"] +[node name="HBoxContainer3" type="HBoxContainer" parent="CanvasLayer/Topleft/Character4/VBoxContainer"] layout_mode = 2 -[node name="Label" type="Label" parent="Topleft/Character4/VBoxContainer/HBoxContainer3"] +[node name="Label" type="Label" parent="CanvasLayer/Topleft/Character4/VBoxContainer/HBoxContainer3"] custom_minimum_size = Vector2(70, 0) layout_mode = 2 text = "Stamina" -[node name="ProgressBar" type="ProgressBar" parent="Topleft/Character4/VBoxContainer/HBoxContainer3"] +[node name="ProgressBar" type="ProgressBar" parent="CanvasLayer/Topleft/Character4/VBoxContainer/HBoxContainer3"] custom_minimum_size = Vector2(100, 0) layout_mode = 2 theme_override_styles/background = SubResource("StyleBoxFlat_05pau") theme_override_styles/fill = SubResource("StyleBoxFlat_u3vj7") -[node name="Label2" type="Label" parent="Topleft/Character4/VBoxContainer/HBoxContainer3"] +[node name="Label2" type="Label" parent="CanvasLayer/Topleft/Character4/VBoxContainer/HBoxContainer3"] custom_minimum_size = Vector2(63, 0) layout_mode = 2 text = "100/100" horizontal_alignment = 2 -[node name="HBoxContainer4" type="HBoxContainer" parent="Topleft/Character4/VBoxContainer"] +[node name="HBoxContainer4" type="HBoxContainer" parent="CanvasLayer/Topleft/Character4/VBoxContainer"] layout_mode = 2 -[node name="Label" type="Label" parent="Topleft/Character4/VBoxContainer/HBoxContainer4"] +[node name="Label" type="Label" parent="CanvasLayer/Topleft/Character4/VBoxContainer/HBoxContainer4"] custom_minimum_size = Vector2(70, 0) layout_mode = 2 text = "Skill" -[node name="ProgressBar" type="ProgressBar" parent="Topleft/Character4/VBoxContainer/HBoxContainer4"] +[node name="ProgressBar" type="ProgressBar" parent="CanvasLayer/Topleft/Character4/VBoxContainer/HBoxContainer4"] custom_minimum_size = Vector2(100, 0) layout_mode = 2 theme_override_styles/background = SubResource("StyleBoxFlat_ftyws") -[node name="Label2" type="Label" parent="Topleft/Character4/VBoxContainer/HBoxContainer4"] +[node name="Label2" type="Label" parent="CanvasLayer/Topleft/Character4/VBoxContainer/HBoxContainer4"] custom_minimum_size = Vector2(63, 0) layout_mode = 2 text = "100/100" horizontal_alignment = 2 -[node name="ColorRect2" type="ColorRect" parent="Topleft/Character4"] +[node name="ColorRect2" type="ColorRect" parent="CanvasLayer/Topleft/Character4"] custom_minimum_size = Vector2(12, 64) layout_mode = 2 diff --git a/main.gd b/main.gd index 29b3439..2c06be6 100644 --- a/main.gd +++ b/main.gd @@ -30,7 +30,7 @@ func _input(event): func _title(): # This is like autoloading the scene, only # it happens after already loading the main scene. - get_tree().change_scene_to_file("res://title.tscn") + get_tree().change_scene_to_file("res://backgounds/disclaimer.tscn") #get_tree().root.add_child(title) #get_tree().root.remove_child(boot) #boot.queue_free() diff --git a/sprites/common/player/player.tscn b/sprites/common/player/player.tscn index 0315a2d..eccc91e 100644 --- a/sprites/common/player/player.tscn +++ b/sprites/common/player/player.tscn @@ -176,3 +176,6 @@ shape = SubResource("RectangleShape2D_dj8gt") libraries = { "": SubResource("AnimationLibrary_mh65y") } + +[node name="Camera2D" type="Camera2D" parent="."] +position = Vector2(0, 57)