hardcode some assumptions about how this app uses love

[?]
Aug 6, 2022, 4:35 PM
AGJXIDOFAZEKPSGDVZJAZXNOKQLTVZUKOCIYFN4AB4YEWVRFRNRAC

Dependencies

  • [2] DJSIRUMD a more radical attempt at ignoring nil y's
  • [3] AVTNUQYR basic test-enabled framework
  • [4] AD34IX2Z couple more tests
  • [5] PESSMQBJ no, make sure to compute line width after screen dimensions
  • [6] 3QNOKBFM beginnings of a test harness

Change contents

  • replacement in app.lua at line 19
    [3.2343][3.2243:2305](),[3.2305][3.2343:2426](),[3.2343][3.2343:2426](),[3.2426][3.127:170](),[3.127][3.127:170]()
    if App.initialize_globals then App.initialize_globals() end
    if App.initialize then App.initialize(love.arg.parseGameArguments(arg), arg) end
    if love.timer then love.timer.step() end
    [3.2343]
    [3.170]
    App.initialize_globals()
    App.initialize(love.arg.parseGameArguments(arg), arg)
  • edit in app.lua at line 22
    [3.171]
    [3.171]
    love.timer.step()
  • replacement in app.lua at line 38
    [3.551][2.19:89]()
    -- perform draw before update to give it a chance to mutate state
    [3.551]
    [3.636]
    -- draw before update to give it a chance to mutate state
    love.graphics.origin()
    love.graphics.clear(love.graphics.getBackgroundColor())
    App.draw()
    love.graphics.present()
  • replacement in app.lua at line 44
    [3.637][3.637:784](),[3.784][3.277:315](),[3.315][3.824:863](),[3.2549][3.824:863](),[3.824][3.824:863](),[3.863][2.90:225](),[2.225][3.863:915](),[3.863][3.863:915]()
    if love.graphics and love.graphics.isActive() then
    love.graphics.origin()
    love.graphics.clear(love.graphics.getBackgroundColor())
    if App.draw then App.draw() end
    love.graphics.present()
    end
    if love.timer then dt = love.timer.step() end
    if App.update then App.update(dt) end -- will pass 0 if love.timer is disabled
    if love.timer then love.timer.sleep(0.001) end
    [3.637]
    [3.915]
    dt = love.timer.step()
    App.update(dt)
    love.timer.sleep(0.001)