Not important updates

This commit is contained in:
SweetSea-ButImNotSweet
2024-05-20 19:23:00 +07:00
parent 62dc4b1abf
commit 2c1f7485ad
5 changed files with 97 additions and 40 deletions

View File

@@ -55,32 +55,31 @@ end
function TitleScene:render()
MainBackground()
love.graphics.setColor(0,0,0,0.7)
love.graphics.rectangle("fill", 14, 174, 260, 220, 10, 10)
love.graphics.setColor(0,0,0,0.7)
love.graphics.rectangle("fill", 14, 400, 605, 75, 10, 10)
love.graphics.setColor(0,0,0,0.7)
love.graphics.rectangle("fill", 14, 174, 260, 210, 10, 10)
love.graphics.setColor(0.4, 1, 1, 0.5)
love.graphics.rectangle("fill", 14, 40, 260, 120, 10, 10)
love.graphics.rectangle("fill", 20, 198 + 20 * self.main_menu_state, 240, 22)
--
drawBigText('Tromi', 30, 180, 120, "left")
drawText('version 2', 110, 193, 120, "left")
self:drawCredits(300, 40)
drawText(tostring(self.main_menu_state), 20, 405, 1000)
drawText("Based on Cambridge - t-sp.in/cambridge", 20, 420, 1000)
drawText("Music for Tromi by Jerry Martin, all rights reserved - jerrymartinmusic.com", 20, 435, 1000)
drawText("Game backgrounds by Pixabay users Joe_hackney, yokim, Favorisxp, Any_Ann, VisualSkyFX ", 20, 450, 1000)
if SETTINGS["music"] == true then
drawText("On", 230, 320, 1000)
else
drawText("Off", 230, 320, 1000)
end
if SETTINGS["lines"] == true then
drawText("On", 230, 340, 1000)
else
drawText("Off", 230, 340, 1000)
end
--
for i, screen in pairs(main_menu_screens) do
drawText(screen.title, 40, 200 + 20 * i, 1200, "left")
end
--
drawText(SETTINGS["music"] and "On" or "Off", 230, 320, 1000)
drawText(SETTINGS["lines"] and "On" or "Off", 230, 340, 1000)
love.graphics.setColor(0,0,0,0.7)
love.graphics.rectangle("fill", 14, 400, 605, 75, 10, 10)
--
drawText("mycophobia.org", 20, 405, 1000)
drawText("Based on Cambridge - t-sp.in/cambridge", 20, 420, 1000)
drawText("Music for Tromi by Jerry Martin, all rights reserved - jerrymartinmusic.com", 20, 435, 1000)
drawText("Game backgrounds by Pixabay users Joe_hackney, yokim, Favorisxp, Any_Ann, VisualSkyFX ", 20, 450, 1000)
self:drawCredits(300, 40)
if table.concat(self.code, ',') == '1,1,1,1,-1,-1,-1,-1' then PENTO_MODE = true end
if PENTO_MODE then
drawBigText('PENT MODE', 30, 100, 120, "left")
@@ -95,13 +94,15 @@ end
function TitleScene:onInputPress(e)
if e.type == "touch" then
local selecting = math.floor((e.y - 198) / 20)
if selecting > 0 and selecting <= #main_menu_screens then
if (e.x >= 20 and e.x <= 260) and (selecting > 0 and selecting <= #main_menu_screens) then
if self.main_menu_state ~= selecting then
self.main_menu_state = selecting
else
VCTRL.toggle(true)
SCENE = main_menu_screens[selecting]()
end
elseif e.x >= 14 and e.y >= 40 and e.x <= 274 and e.y <= 170 then
end
else
if e.input == "menu_decide" or e.input == "rotate_left" or e.scancode == "return" then