Infinite mode
parent
cbdf446e73
commit
c3b220b440
|
@ -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 :
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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")
|
||||
|
@ -44,6 +44,12 @@ 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()
|
||||
get_tree().get_root().add_child(highscores_screen)
|
||||
|
|
Reference in New Issue