If Normal apps do not quit, the user just switches app or kills the app and we can’t use os.exit() then how do I handle memory created for the entire life of my game –
In composer, I can delete memory between scenes BUT coz I won’t know when the app is forced to quit. What about memory I created in the main.lua file that’s not display objects. i.e.
main.lua
local composer = require( “composer” )
_G.TextCandy = require(“lib_text_candy”)
_G.Particles = require(“lib_particle_candy”)
_G.GUI = require(“widget_candy”)
TextCandy.AddCharset (“GAME_FONT”, “Celtic_Big_Rock”, “Celtic_Big_Rock.png”,
“0123456789AaBCDEFGHIJKLMNOoPQRSTUuVWXYZ’*@():,$.!-%+?;#/_”, 24)
<-------------------WHEN WOULD I DELETE THIS CHARSET??
require( “ParticleTypes” )<------WHEN WOULD I DELETE THESE PARTICLE
TYPES??
composer.isDebug = true
composer.loadScene(“menu”)
timer.performWithDelay( 550,function()
composer.gotoScene(“menu”,“crossFade”, 500)
end )
Would I just NOT WORRY about that memory??
Anyway, thanks for any help. Much appreciated.
Jeff