diff --git a/README.md b/README.md index e2762a3..29cdadc 100644 --- a/README.md +++ b/README.md @@ -21,6 +21,7 @@ Short and noob friendly bullet hell for [GBJAM 8](https://itch.io/jam/gbjam-8) * Enemies will drop 2 types of power ups: * Double - shoots 2 lasers with the same power and slightly faster cooldown * Fast - shoots 1 laser without cooldown but significantly less damage than the standard laser +* The Infinite mode is the same except there is no time limit! All the above rules are still applied ## Credits :​ diff --git a/ui/main_menu/main_menu.tscn b/ui/main_menu/main_menu.tscn index 5ec37ad..4f31f4a 100644 --- a/ui/main_menu/main_menu.tscn +++ b/ui/main_menu/main_menu.tscn @@ -82,6 +82,18 @@ __meta__ = { "_edit_use_anchors_": false } +[node name="infinite" type="Label" parent="layer/menu"] +margin_left = 8.0 +margin_top = 40.0 +margin_right = 56.0 +margin_bottom = 50.0 +custom_fonts/font = ExtResource( 3 ) +text = "Infinite" +uppercase = true +__meta__ = { +"_edit_use_anchors_": false +} + [node name="caret" type="TextureRect" parent="layer/menu"] margin_top = 8.0 margin_right = 8.0 diff --git a/ui/main_menu/menu.gd b/ui/main_menu/menu.gd index e1aea30..099b507 100644 --- a/ui/main_menu/menu.gd +++ b/ui/main_menu/menu.gd @@ -5,7 +5,7 @@ var index = 0 var spacing = 16 var start_position = 8 var menu_items = 0 -var positions = [ 8, 24 ] +var positions = [ 8, 24, 40 ] var highscores_screen = load("ui/hiscores/hiscores.tscn") var game_screen = load("levels/demo.tscn") @@ -43,6 +43,12 @@ func update_caret(): func start(): get_node("../../").queue_free() get_tree().get_root().add_child(game_screen) + +func infinite(): + get_node("../../").queue_free() + get_tree().get_root().add_child(game_screen) + get_tree().get_root().get_node("level").get_node("hud").timer.stop() + get_tree().get_root().get_node("level").get_node("hud").get_node("layer").get_node("timer_label").hide() # Oh boy...there is a better way of doing this _I know it_ func highscores(): get_node("../../").queue_free()