Levels specify which cards should be displayed

This commit is contained in:
Sebastian Morr 2020-10-27 12:16:33 +01:00
parent f19d2bee8a
commit 3437b89ffc
11 changed files with 23 additions and 2 deletions
scenes

View file

@ -63,6 +63,7 @@ func load_level(level_id):
level_description.bbcode_text = level.description
level_congrats.bbcode_text = level.congrats
level_name.text = level.title
cards.draw(levels.chapters[current_chapter].levels[current_level].cards)
for r in repositories_node.get_children():
r.queue_free()
@ -131,6 +132,5 @@ func update_repos():
if levels.chapters[current_chapter].levels[current_level].check_win():
show_win_status()
func toggle_cards():
cards.visible = not cards.visible