Does anyone know of a template or general idea for grid-based movement? The Boxed-In games and many others employ this.
My primary thoughts are to create a 2d array that holds numbers corresponding to corridor/wall/water, etc. Then give my character an x position and y position value, and so for example, if I press the button to go right, I check the x+1 position in the array and if it returns the number for corridor then I do a transition/animation on my character and update the position values. Am I close? (In my game there is no "physics" involved, just positional logic). At any rate a tutorial would be useful.
Thanks!
Dane
aka dogfish apps
p.s. I just went pro with Corona! This company and community is phenomenal!