Ranguna / LOVEDEBUG

LoveDebug - A whole new way of debugging your game
MIT License
94 stars 8 forks source link

Strange bug with livereload and canvas #12

Open ghost opened 6 years ago

ghost commented 6 years ago

Hello. Thank you for that awesome tool! I have a problem with live coding. Please, look at this example client.love.zip. There is a commented line in main.lua (#25): app:print("hello", 100, 100). If you run the app, you will see background grid, but if you uncomment this line in livecode mode (or make any other change), background disappears. I have no idea why. This background is rendered in canvas and saved to app.canvasImages.bgGrid on first launch (look into app.lua). Then it should be drawed in love.draw() event, but something going wrong.

ghost commented 6 years ago

If this example is too complex, I can try to make simplier.