I'm another noob and lover... And I need some help :)

General discussion about LÖVE, Lua, game development, puns, and unicorns.
User avatar
I~=Spam
Party member
Posts: 206
Joined: Fri Dec 14, 2012 11:59 pm

Re: I'm another noob and lover... And I need some help :)

Post by I~=Spam »

I think what you would do it set all globals to zero and call love.load. If you wrote your code well (put all loading things in love.load) it should work. :) But there is a better way. Just use gamestates. Link here: https://github.com/kikito/stateful.lua It is a library written by kikito (he writes lots of awesome libs centered around LOVE check out his github account for all of his stuff :) https://github.com/kikito).

For having multiple levels maybe you could use gamestates. Here is a great example game that kikito wrote: https://github.com/kikito/ekrixion
My Tox ID: 0F1FB9170B94694A90FBCF6C4DDBDB9F58A9E4CDD0B4267E50BF9CDD62A0F947E376C5482610
Post Reply

Who is online

Users browsing this forum: Semrush [Bot] and 2 guests