define App.run_frame at the top level
Dependencies
- [2]
BQH7ANWMresolve conflicts - [3]
7UUGFVEQresolve conflicts - [4]
ULKNZUZKresolve conflicts - [5]
DJSIRUMDa more radical attempt at ignoring nil y's - [6]
CUFW4EJLreorganize app.lua and its comments - [7]
NLU6BXIRclean up some cruft from error callstacks - [8]
3QNOKBFMbeginnings of a test harness - [9]
AGJXIDOFhardcode some assumptions about how this app uses love - [10]
R6MB3UPBMerge text.love - [11]
KRLRRLVGMerge text.love - [12]
AFZEVZOUresolve conflicts - [13]
AVTNUQYRbasic test-enabled framework - [14]
DMS3N5YDundo an ancient hack; be an idiomatic LÖVE app - [15]
TBWAE64Aapp is now live, can communicate with driver - [16]
IZGZEWFGswitch to source editor on error
Change contents
- replacement in app.lua at line 160
-- one iteration of the event loop-- return nil to continue the event loop, non-nil to quitApp.run_frame = function()if love.event thenlove.event.pump()for name, a,b,c,d,e,f in love.event.poll() doif name == "quit" thenif not love.quit or not love.quit() thenreturn a or 0end-- protect against runtime errorsreturn function()local status, result = xpcall(App.run_frame, live.handle_error)return resultendendApp = {}-- one iteration of the event loop-- return nil to continue the event loop, non-nil to quitApp.run_frame = function()if love.event thenlove.event.pump()for name, a,b,c,d,e,f in love.event.poll() doif name == "quit" thenif not love.quit or not love.quit() thenreturn a or 0 - edit in app.lua at line 179
love.handlers[name](a,b,c,d,e,f) - edit in app.lua at line 180
love.handlers[name](a,b,c,d,e,f) - edit in app.lua at line 182
end - replacement in app.lua at line 184[5.551]→[5.32:59](∅→∅),[5.59]→[5.59:78](∅→∅),[5.78]→[5.78:79](∅→∅),[5.235]→[5.78:79](∅→∅),[5.78]→[5.78:79](∅→∅),[5.79]→[5.186:273](∅→∅),[5.186]→[5.186:273](∅→∅),[5.273]→[5.79:94](∅→∅),[5.94]→[5.288:316](∅→∅),[5.271]→[5.288:316](∅→∅),[5.288]→[5.288:316](∅→∅)
dt = love.timer.step()App.update(dt)love.graphics.origin()love.graphics.clear(love.graphics.getBackgroundColor())App.draw()love.graphics.present()dt = love.timer.step()App.update(dt) - replacement in app.lua at line 187
love.timer.sleep(0.001)love.graphics.origin()love.graphics.clear(love.graphics.getBackgroundColor())App.draw()love.graphics.present() - replacement in app.lua at line 192
-- returning nil continues the loopendlove.timer.sleep(0.001) - replacement in app.lua at line 194
-- protect against runtime errorsreturn function()local status, result = xpcall(App.run_frame, live.handle_error)return resultend-- returning nil continues the loop - edit in app.lua at line 204
App = {}