remove comments

This commit is contained in:
2025-12-11 18:03:09 +01:00
parent 3ead2b0ce0
commit 4d3349720c
20 changed files with 90 additions and 241 deletions

View File

@@ -1,6 +1,3 @@
--------------------------------------------------------------------------------
-- Menu Module
--------------------------------------------------------------------------------
function MenuWindow.draw()
UI.draw_top_bar("Main Menu")
UI.draw_menu(Context.menu_items, Context.selected_menu_item, 108, 70)
@@ -16,3 +13,24 @@ function MenuWindow.update()
end
end
end
function MenuWindow.play()
-- Reset player state and screen for a new game
Context.player.x = Config.player.start_x
Context.player.y = Config.player.start_y
Context.player.vx = 0
Context.player.vy = 0
Context.player.jumps = 0
Context.current_screen = 1
GameWindow.set_state(WINDOW_GAME)
end
function MenuWindow.exit()
exit()
end
-- Initialize menu items after actions are defined
Context.menu_items = {
{label = "Play", action = MenuWindow.play},
{label = "Exit", action = MenuWindow.exit}
}