diff --git a/compat/game21/init.lua b/compat/game21/init.lua index fbe785b..af32ca2 100644 --- a/compat/game21/init.lua +++ b/compat/game21/init.lua @@ -70,6 +70,11 @@ local message_font, go_sound, level_up_sound, restart_sound, select_sound ---@param level_id string ---@param level_options table function public.start(pack_id, level_id, level_options) + -- update inital window dimensions when starting as well (for onInit/onLoad) + if not args.headless then + game.width = love.graphics.getWidth() + game.height = love.graphics.getHeight() + end local difficulty_mult = level_options.difficulty_mult if not difficulty_mult or type(difficulty_mult) ~= "number" then error("Must specify a numeric difficulty mult when running a compat game") diff --git a/ui/screens/levelselect.lua b/ui/screens/levelselect.lua index 0d18ca3..96e9f66 100644 --- a/ui/screens/levelselect.lua +++ b/ui/screens/levelselect.lua @@ -28,7 +28,7 @@ local function make_level_element(pack, level, extra_info) }, { direction = "column", style = { padding = 5 } }), label:new(level.description, { font_size = 16, wrap = true }), -- future: use elements[2] to change this to only appear when selected }, { direction = "column" }), - label:new(music, { font_size = 30, wrap = true }), + --flex:new({label:new(music, { font_size = 30, wrap = true })}, { align_items = "end", direction = "column" }), }, { direction = "row" }), style = { background_color = { 0, 0, 0, 0.7 }, border_color = { 0, 0, 0, 0.7 } }, selectable = true,