Aww man! I was doing so well, I got 4/5 crystals and then I got this error:
Error
main.lua:293: attempt to compare nil with number
Traceback
main.lua:293: in function 'draw'
[C]: in function 'xpcall'
I was having a really good time with the game too, btw. I can imagine it was a lot of work trying to get the world generation going, and the ai too! Very nice game overall, error not withstanding.