mirror of
https://gitea.com/SweetSea-ButImNotSweet/tromi_mobile.git
synced 2025-01-08 17:33:09 +08:00
Fix loading screen
This commit is contained in:
10
main.lua
10
main.lua
@@ -23,10 +23,6 @@ function love.load()
|
||||
math.randomseed(os.time())
|
||||
require "settings"
|
||||
|
||||
-- Loading font first
|
||||
FONT_tromi = love.graphics.newFont('res/fonts/monofonto rg.otf', 28)
|
||||
FONT_big = love.graphics.newFont('res/fonts/monofonto rg.otf', 56)
|
||||
|
||||
-- Window stuffs
|
||||
love.mouse.setVisible(false)
|
||||
love.window.setMode(love.graphics.getWidth(), love.graphics.getHeight(), {resizable = true});
|
||||
@@ -38,11 +34,13 @@ function love.load()
|
||||
|
||||
-- Text "LOADING..."
|
||||
local loaded = {}
|
||||
local prev_thing
|
||||
local loadedCounter = 0
|
||||
--- Show the loading text while we are loading resources<br>
|
||||
--- **WARNING**: should only be used while loading the game!
|
||||
function ShowLoadingText(thing)
|
||||
table.insert(loaded, thing)
|
||||
if prev_thing then table.insert(loaded, prev_thing) end
|
||||
prev_thing = thing
|
||||
loadedCounter = loadedCounter + 1
|
||||
|
||||
love.graphics.replaceTransform(GLOBAL_TRANSFORM)
|
||||
@@ -63,7 +61,7 @@ function love.load()
|
||||
|
||||
-- Now it's real time to load all stuffs!
|
||||
highscores = {}
|
||||
require "load"
|
||||
require "load" -- Most game's resources are loaded in here
|
||||
require "scene"
|
||||
require "game.vctrl" -- VCTRL
|
||||
|
||||
|
||||
Reference in New Issue
Block a user