Merge lines.love
This commit is contained in:
commit
36ec0b4b06
6
main.lua
6
main.lua
|
@ -85,6 +85,12 @@ function App.initialize_globals()
|
||||||
end
|
end
|
||||||
|
|
||||||
function App.initialize(arg)
|
function App.initialize(arg)
|
||||||
|
love.window.setVSync(0) -- remove some delays in exchange for risk of screen tears; we're not a game
|
||||||
|
love.keyboard.setTextInput(true) -- bring up keyboard on touch screen
|
||||||
|
love.keyboard.setKeyRepeat(true)
|
||||||
|
|
||||||
|
love.graphics.setBackgroundColor(1,1,1)
|
||||||
|
|
||||||
if Current_app == 'run' then
|
if Current_app == 'run' then
|
||||||
run.initialize(arg)
|
run.initialize(arg)
|
||||||
elseif Current_app == 'source' then
|
elseif Current_app == 'source' then
|
||||||
|
|
5
run.lua
5
run.lua
|
@ -16,11 +16,6 @@ end
|
||||||
-- called only for real run
|
-- called only for real run
|
||||||
function run.initialize(arg)
|
function run.initialize(arg)
|
||||||
log_new('run')
|
log_new('run')
|
||||||
love.keyboard.setTextInput(true) -- bring up keyboard on touch screen
|
|
||||||
love.keyboard.setKeyRepeat(true)
|
|
||||||
|
|
||||||
love.graphics.setBackgroundColor(1,1,1)
|
|
||||||
|
|
||||||
if Settings then
|
if Settings then
|
||||||
run.load_settings()
|
run.load_settings()
|
||||||
else
|
else
|
||||||
|
|
|
@ -61,11 +61,6 @@ end
|
||||||
-- called only for real run
|
-- called only for real run
|
||||||
function source.initialize()
|
function source.initialize()
|
||||||
log_new('source')
|
log_new('source')
|
||||||
love.keyboard.setTextInput(true) -- bring up keyboard on touch screen
|
|
||||||
love.keyboard.setKeyRepeat(true)
|
|
||||||
|
|
||||||
love.graphics.setBackgroundColor(1,1,1)
|
|
||||||
|
|
||||||
if Settings and Settings.source then
|
if Settings and Settings.source then
|
||||||
source.load_settings()
|
source.load_settings()
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue