I have figured out a very effective and token-saving method of creating scenes.
First, create a scene array called scnr(scene-running) and a variable called scn(for scene id). start it at 1
scnr={}
scn=1 |
inside of that array we create functions with comments to tell which is what
--[[_init]]--
scnr={
--scene splash
function()
--some stuff here
end,
--scene title
function()
--some title stuff here
end
} |
then inside _draw() we simply do:
--[[_draw]]-- scnr[scn]() |
Let me know if you guys know of another method thats more efficient.
[Please log in to post a comment]




