final changes, we're ready

This commit is contained in:
JHDev2006
2025-09-13 17:17:14 +01:00
parent 55d2a7c7ca
commit 2f102e61de
4 changed files with 3 additions and 26 deletions

View File

@@ -165,7 +165,7 @@ bus = &"SFX"
[node name="Title" type="Label" parent="."]
visible = false
modulate = Color(0.968627, 0.223529, 0.0627451, 1)
anchors_preset = -1
anchors_preset = 10
anchor_right = 1.0
offset_bottom = 17.0
grow_horizontal = 2

View File

@@ -197,7 +197,7 @@ func _process(delta: float) -> void:
log_comment("Reloaded resource packs!")
handle_p_switch(delta)
if Input.is_key_label_pressed(KEY_F11) and debug_mode == false:
if Input.is_key_label_pressed(KEY_F11) and debug_mode == false and OS.is_debug_build():
AudioManager.play_global_sfx("switch")
debug_mode = true
log_comment("Debug Mode enabled! some bugs may occur!")

23
Scripts/Parts/EndlessLevelConstructor.gd Executable file → Normal file
View File

@@ -16,26 +16,3 @@ func _enter_tree() -> void:
owner.theme = OVERWORLD_STYLES.pick_random()
Global.level_theme = owner.theme
print(owner.theme)
func _ready() -> void:
seed(int(level_seed))
await owner.ready
build_level()
func build_level() -> void:
var piece_spawn_point := -96
var last_piece = self
for i in level_length:
var piece = get_next_piece()
piece.position.x = piece_spawn_point
piece_spawn_point += piece.length
$"../Pieces".add_child(piece)
last_piece = piece
func get_next_piece() -> LevelPiece:
var piece_num := 0
var amount_of_pieces := DirAccess.get_files_at(PIECE_FOLDER + style + "/").size()
piece_num = randi_range(1, amount_of_pieces)
var path = PIECE_FOLDER + style + "/" + str(piece_num) + ".tscn"
var next_piece = load(path).instantiate()
return next_piece

View File

@@ -1 +1 @@
1757776298
1.0.0