for anyone new to lua, i suggest you get core lua and browse throughNec wrote:Im new to Lua and Love (I figure why not try my hand at some Lua). Im not knew to programming, though. Im a Java programmer and Ive got to say that these posts helped quite a bit. Ive just got to get used to the way Lua goes about things (no curly braces )
http://www.lua.org/manual/5.1
then adapt to love
btw, to the op, joshparrisjosh
i am fairly well versed with luaplayer, so feel free to post comparisons
reason love works is lua callbacks, it is possible to do it with any lua based system, but LP went for a down and basic approach to it, and they are loosely talked about
a good way to think about it is if instead of 1 main loop, you have 1 main loop broken up into parts to help organize
when love starts (even without a script) it automatically loops until told to quit, the Callbacks are then refreshed (except for function load)
vs psp luaplayer (and variants) start at the top of a script and race for the EOF, unless caught in a loop the program almost instantly dumps back out