---@diagnostic disable: undefined-global movementSpeed = 3; bannerTextureWidth = 509; buttonHeight = 50; buttonWidth = 110; bigButtonWidth = 150; bigButtonHeight = buttonHeight; function Setup() setRenderPlayer(false) setBgImage("assets/backgrounds/city-background-1.png") end function Local2PButton() -- Add C functions to reset Lua state and re-run Setup with different scripts end function MultiplayerButton() -- Add C functions to reset Lua state and re-run Setup with different scripts end function SettingsButton() -- Add C functions to reset Lua state and re-run Setup with different scripts end function Update() queueTextureForRender("assets/gui/mainMenu_banner.png", WIDTH // 2 - bannerTextureWidth // 2, 0) queueButtonForRender("Local 2P", WIDTH // 2 - buttonWidth // 2, HEIGHT // 2 - buttonHeight // 2, buttonWidth, buttonHeight, "Local2PButton"); queueButtonForRender("Multiplayer", WIDTH // 2 - bigButtonWidth // 2, HEIGHT // 2 - bigButtonHeight // 2 + 55, bigButtonWidth, bigButtonHeight, "MultiplayerButton"); queueButtonForRender("Settings", WIDTH // 2 - buttonWidth // 2, HEIGHT // 2 - buttonHeight // 2 + 55 + 55, buttonWidth, buttonHeight, "SettingsButton"); -- if keys[getKeycodeByName("RIGHT")] or keys[getKeycodeByName("D")] then -- movePlayer(movementSpeed, 0) -- end -- if keys[getKeycodeByName("LEFT")] or keys[getKeycodeByName("A")] then -- movePlayer(movementSpeed * -1, 0) -- end -- if keys[getKeycodeByName("DOWN")] or keys[getKeycodeByName("S")] then -- movePlayer(0, movementSpeed) -- end -- if keys[getKeycodeByName("UP")] or keys[getKeycodeByName("W")] then -- movePlayer(0, movementSpeed * -1) -- end end