Just posting my first ‘official’ comment as a new discussion in order to stay on the good side of the forum police! I’m absolutely loving Codea and am just so impressed with what TLL have created and the functionality they’ve managed to pack into it. It would be amazing at twice the price! That said, my experience of ‘code’ is pretty much limited to some very early dabbles with a ZX81 and a bit of html5/js (so basically none!) and yet I find the whole Lua thing pretty manageable, especially with all the extra libraries that have been thrown in (the tutorials by Ignatz and Reefwing have also been invaluable so thanks guys!)
Anyway, that’s the gushy part over… I’m dipping my toe in the water by trying to program a very simple puzzle game that works by creating a randomly generated (but hidden) path that the player has to discover by tapping the screen. I think. I’ve got the simple things covered but just wanted to get some advice on generating the values of the path.
My first idea was to use a simple square and +1 it around the screen (randomly turning left and right) until it got to a predetermined point. Do you think this is the most efficient way of doing this and, if so, what’s the best way to generate the values of the square? By generating an array that covers the area of each new square? Or using a vector perhaps? To be honest, I don’t know enough about either yet to know which one I should be exploring so a point in the right direction would be really appreciated!
Sorry if this is unclear or a bit long… this stuff absolutely fascinates me!