This commit is contained in:
Page Asgardius 2024-08-04 15:33:57 -07:00
parent 512f573fb0
commit 50cac5c47b
30 changed files with 413 additions and 56 deletions

View file

@ -32,6 +32,19 @@ func _input(event):
func _winner():
Global.cdialog = [[tr("DIALOG_CERES_L20_3"), true, 0, 0], [tr("DIALOG_CERES_L20_4"), false, 3], [tr("DIALOG_CERES_L20_5"), true, 0, 0]]
Global.live = 3
Global.ccutscene = 6
#talk.queue_free()
talk = load("res://levels/ui/talk.tscn").instantiate()
get_tree().root.add_child.call(talk)
func _statrebase():
if Global.debug:
for i in 4:
if Global.dparty[i][0] != null:
for j in 7:
Global.mstats[Global.dparty[i][0]][j] = Global.basestats[Global.dparty[i][0]][j] * Global.dlevel[Global.dparty[i][0]]
else:
for i in 4:
if Global.party[i][0] != null:
for j in 7:
Global.mstats[Global.party[i][0]][j] = Global.basestats[Global.party[i][0]][j] * Global.level[Global.dparty[i][0]]

20
levels/Ceres/map.gd Normal file
View file

@ -0,0 +1,20 @@
extends Node2D
# Called when the node enters the scene tree for the first time.
func _ready():
if !Global.debug:
_statrebase()
Global.live = 1
#pass # Replace with function body.
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
pass
func _statrebase():
for i in 4:
if Global.party[i][0] != null:
for j in 7:
Global.cstats[Global.party[i][0]][j] = Global.basestats[Global.party[i][0]][j] * Global.level[Global.dparty[i][0]]

46
levels/Ceres/map.tscn Normal file
View file

@ -0,0 +1,46 @@
[gd_scene load_steps=6 format=3 uid="uid://bomoy5hvs8ldt"]
[ext_resource type="Script" path="res://levels/Ceres/map.gd" id="1_fb2vd"]
[ext_resource type="Texture2D" uid="uid://kxvipok4tnuw" path="res://backgounds/wip.jpg" id="2_jxya4"]
[ext_resource type="PackedScene" uid="uid://cehe6sm8ly06u" path="res://sprites/common/player/player.tscn" id="3_q2e1y"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_nytv7"]
size = Vector2(20, 761)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_wkumn"]
size = Vector2(1283, 20)
[node name="Map" type="Node2D"]
script = ExtResource("1_fb2vd")
[node name="WIP" type="TextureRect" parent="."]
offset_right = 40.0
offset_bottom = 40.0
texture = ExtResource("2_jxya4")
[node name="StaticBody2D" type="StaticBody2D" parent="."]
[node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D"]
position = Vector2(-11, 361.5)
shape = SubResource("RectangleShape2D_nytv7")
[node name="StaticBody2D2" type="StaticBody2D" parent="."]
[node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D2"]
position = Vector2(1293, 358)
shape = SubResource("RectangleShape2D_nytv7")
[node name="StaticBody2D3" type="StaticBody2D" parent="."]
[node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D3"]
position = Vector2(641.5, -9)
shape = SubResource("RectangleShape2D_wkumn")
[node name="StaticBody2D4" type="StaticBody2D" parent="."]
[node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D4"]
position = Vector2(644, 731)
shape = SubResource("RectangleShape2D_wkumn")
[node name="Player" parent="." instance=ExtResource("3_q2e1y")]
position = Vector2(633, 590)

View file

@ -0,0 +1,12 @@
extends Node2D
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
if !Global.debug:
Global.cplace = [0, 0, 0]
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
pass

View file

@ -0,0 +1,24 @@
[gd_scene load_steps=4 format=3 uid="uid://c0087irckk6ls"]
[ext_resource type="Texture2D" uid="uid://cvk01b0l15k3u" path="res://backgounds/Midori walking though forest.jpg" id="1_3edyj"]
[ext_resource type="PackedScene" uid="uid://d31udhuuwrajn" path="res://levels/bottomhud.tscn" id="1_7k1pi"]
[ext_resource type="Script" path="res://levels/Cutscenes/unfunaversary/firstclass.gd" id="1_atuct"]
[node name="Firstclass" type="Node2D"]
script = ExtResource("1_atuct")
[node name="TextureRect" type="TextureRect" parent="."]
offset_right = 1278.0
offset_bottom = 600.0
texture = ExtResource("1_3edyj")
[node name="Text" type="Label" parent="."]
offset_left = 52.0
offset_top = 606.0
offset_right = 1224.0
offset_bottom = 714.0
theme_override_font_sizes/font_size = 40
text = "CUTSCENE_1_3"
horizontal_alignment = 1
[node name="Bottomhud" parent="." instance=ExtResource("1_7k1pi")]

View file

@ -0,0 +1,23 @@
[gd_scene load_steps=3 format=3 uid="uid://bufn0t2n24ubb"]
[ext_resource type="Texture2D" uid="uid://k8ahmljsdidy" path="res://backgounds/Midori Punishment.jpg" id="1_gtd13"]
[ext_resource type="PackedScene" uid="uid://d31udhuuwrajn" path="res://levels/bottomhud.tscn" id="2_iimhu"]
[node name="Punishment" type="Node2D"]
[node name="TextureRect" type="TextureRect" parent="."]
offset_right = 1278.0
offset_bottom = 600.0
texture = ExtResource("1_gtd13")
[node name="Text" type="Label" parent="."]
offset_left = 52.0
offset_top = 606.0
offset_right = 1224.0
offset_bottom = 714.0
theme_override_colors/font_color = Color(0, 0, 0, 1)
theme_override_font_sizes/font_size = 40
text = "CUTSCENE_1_0"
horizontal_alignment = 1
[node name="Bottomhud" parent="." instance=ExtResource("2_iimhu")]

View file

@ -0,0 +1,22 @@
[gd_scene load_steps=3 format=3 uid="uid://b7l73y65vvix2"]
[ext_resource type="PackedScene" uid="uid://d31udhuuwrajn" path="res://levels/bottomhud.tscn" id="1_3j65n"]
[ext_resource type="Texture2D" uid="uid://bxa27c7gnivwx" path="res://backgounds/night-sky-at-ceres.jpg" id="1_p8vly"]
[node name="R3" type="Node2D"]
[node name="TextureRect" type="TextureRect" parent="."]
offset_right = 1278.0
offset_bottom = 600.0
texture = ExtResource("1_p8vly")
[node name="Text" type="Label" parent="."]
offset_left = 52.0
offset_top = 606.0
offset_right = 1224.0
offset_bottom = 714.0
theme_override_font_sizes/font_size = 40
text = "CUTSCENE_1_2"
horizontal_alignment = 1
[node name="Bottomhud" parent="." instance=ExtResource("1_3j65n")]

View file

@ -0,0 +1,23 @@
[gd_scene load_steps=3 format=3 uid="uid://ba3q8nwe5yku3"]
[ext_resource type="Texture2D" uid="uid://chbs1cqrcbcrm" path="res://backgounds/Kimberly Arch crying.jpg" id="1_k6hw6"]
[ext_resource type="PackedScene" uid="uid://d31udhuuwrajn" path="res://levels/bottomhud.tscn" id="2_n1fd3"]
[node name="Sadness" type="Node2D"]
[node name="TextureRect" type="TextureRect" parent="."]
offset_right = 1278.0
offset_bottom = 600.0
texture = ExtResource("1_k6hw6")
[node name="Text" type="Label" parent="."]
offset_left = 52.0
offset_top = 606.0
offset_right = 1224.0
offset_bottom = 714.0
theme_override_colors/font_color = Color(0, 0, 0, 1)
theme_override_font_sizes/font_size = 40
text = "CUTSCENE_1_1"
horizontal_alignment = 1
[node name="Bottomhud" parent="." instance=ExtResource("2_n1fd3")]

11
levels/Earth/map.gd Normal file
View file

@ -0,0 +1,11 @@
extends Node2D
# Called when the node enters the scene tree for the first time.
func _ready():
pass # Replace with function body.
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
pass

46
levels/Earth/map.tscn Normal file
View file

@ -0,0 +1,46 @@
[gd_scene load_steps=6 format=3 uid="uid://bqthmqpx51x01"]
[ext_resource type="Script" path="res://levels/Testrooms/testspawn.gd" id="1_82nl8"]
[ext_resource type="Texture2D" uid="uid://kxvipok4tnuw" path="res://backgounds/wip.jpg" id="2_nugl5"]
[ext_resource type="PackedScene" uid="uid://cehe6sm8ly06u" path="res://sprites/common/player/player.tscn" id="3_0rw86"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_nytv7"]
size = Vector2(20, 761)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_wkumn"]
size = Vector2(1283, 20)
[node name="Testspawn" type="Node2D"]
script = ExtResource("1_82nl8")
[node name="WIP" type="TextureRect" parent="."]
offset_right = 40.0
offset_bottom = 40.0
texture = ExtResource("2_nugl5")
[node name="StaticBody2D" type="StaticBody2D" parent="."]
[node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D"]
position = Vector2(-11, 361.5)
shape = SubResource("RectangleShape2D_nytv7")
[node name="StaticBody2D2" type="StaticBody2D" parent="."]
[node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D2"]
position = Vector2(1293, 358)
shape = SubResource("RectangleShape2D_nytv7")
[node name="StaticBody2D3" type="StaticBody2D" parent="."]
[node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D3"]
position = Vector2(641.5, -9)
shape = SubResource("RectangleShape2D_wkumn")
[node name="StaticBody2D4" type="StaticBody2D" parent="."]
[node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D4"]
position = Vector2(644, 731)
shape = SubResource("RectangleShape2D_wkumn")
[node name="Player" parent="." instance=ExtResource("3_0rw86")]
position = Vector2(633, 590)

View file

@ -11,10 +11,11 @@ var ishud = true
# Called when the node enters the scene tree for the first time.
func _ready():
Global.live = 1
add_child(bgsound)
add_child(sfx1)
level = load(Global.cutscenes[Global.ccutscene][0]).instantiate()
musictrack = Global.cutscenes[Global.ccutscene][2]
musictrack = Global.musictracks[Global.cutscenes[Global.ccutscene][2]]
music = load(musictrack)
get_tree().root.add_child.call_deferred(level)
get_tree().root.add_child.call_deferred(bhud)
@ -71,9 +72,9 @@ func _input(event):
Global.ccutscene += 1
get_tree().root.remove_child(level)
level = load(Global.cutscenes[Global.ccutscene][0]).instantiate()
if musictrack != Global.cutscenes[Global.ccutscene][2]:
if musictrack != Global.musictracks[Global.cutscenes[Global.ccutscene][2]]:
bgsound.stop()
musictrack = Global.cutscenes[Global.ccutscene][2]
musictrack = Global.musictracks[Global.cutscenes[Global.ccutscene][2]]
music = load(musictrack)
bgsound.stream = music
bgsound.play(0)

View file

@ -50,3 +50,9 @@ func _on_l_20_pressed():
Global.dplace = [1, 11, 19]
Global.live = 1
get_tree().change_scene_to_file("res://levels/ui/gameplay.tscn")
func _on_lilytest_pressed() -> void:
Global.dplace = [0, 0, 0]
Global.live = 1
get_tree().change_scene_to_file("res://levels/ui/gameplay.tscn")

View file

@ -61,7 +61,7 @@ text = "CERES_L20_DESC"
layout_mode = 2
theme_override_font_sizes/font_size = 32
theme_override_styles/focus = SubResource("StyleBoxFlat_6u0xs")
text = "BUTTON_PLACEHOLDER"
text = "MENU_MAP"
[node name="Dialogtest" type="Button" parent="VBoxContainer"]
layout_mode = 2
@ -94,4 +94,5 @@ theme_override_styles/focus = SubResource("StyleBoxFlat_r2qrn")
text = "BUTTON_RETURN"
[connection signal="pressed" from="VBoxContainer/L20" to="." method="_on_l_20_pressed"]
[connection signal="pressed" from="VBoxContainer/Lilytest" to="." method="_on_lilytest_pressed"]
[connection signal="pressed" from="VBoxContainer/Back" to="." method="_on_back_pressed"]

View file

@ -92,7 +92,7 @@ Provided as a replacement for a HP 14 laptop that died while running Genshin Imp
Steam Deck
Arch Linux Rolling
Used as development device since 0.0.0-dev release
Provided by Evelyn Freeman
Provided by Evelyn Freeman and killed by Valve Corporation
HP Pavilion x360
Debian 12

View file

@ -67,8 +67,9 @@ func _on_disclaimer_pressed():
func _on_testrooms_pressed():
#get_tree().change_scene_to_file("res://levels/ui/testrooms.tscn")
pass
#Global.debug = false
Global.ccutscene = 6
get_tree().change_scene_to_file("res://levels/ui/Cutscenes.tscn")
func _on_ceres_pressed():

View file

@ -61,7 +61,7 @@ text = "CUTSCENE_0_NAME"
layout_mode = 2
theme_override_font_sizes/font_size = 32
theme_override_styles/focus = SubResource("StyleBoxFlat_6u0xs")
text = "BUTTON_PLACEHOLDER"
text = "CUTSCENE_1_NAME"
[node name="Ceres" type="Button" parent="VBoxContainer"]
layout_mode = 2

View file

@ -139,6 +139,7 @@ func _pausemenu():
pmenu = load("res://levels/ui/pause.tscn").instantiate()
Global.live = 1
func _exit():
Global.cdialog = []
Global.exitgame = false
ishud = false
Global.bossready = false

View file

@ -87,29 +87,28 @@ visible = false
layout_mode = 2
theme_override_font_sizes/font_size = 32
theme_override_styles/focus = SubResource("StyleBoxFlat_yb7nc")
text = "Character"
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 = "Team"
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 = "Warp
"
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 = "Settings"
text = "MENU_SETTINGS"
[node name="VBoxContainer2" type="VBoxContainer" parent="CanvasLayer/HBoxContainer2"]
layout_mode = 2
@ -119,26 +118,26 @@ visible = false
layout_mode = 2
theme_override_font_sizes/font_size = 32
theme_override_styles/focus = SubResource("StyleBoxFlat_yb7nc")
text = "Journal"
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 = "Challenges"
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 = "Backpack"
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 = "Exit"
text = "MENU_EXIT"
[connection signal="pressed" from="CanvasLayer/HBoxContainer2/VBoxContainer2/Exit" to="." method="_on_exit_pressed"]