Share Your Code
As a follow up to my original code share of the Corona port I did of my 2D raycasting engine, texture mapped walls have been added.
This was achieved using sprite sheets. The downside of this is the frame rate takes quite a hit compared with the flat filled walls shown in the original sample. I know I can optimise how I use sprites in this demo, but I still think more needs to be done to get the frame rate up - that may mean using a different approach than sprites.
There is a mode button at the top left, which allows you to switch between textured and flat filled walls. The boxes on the left control your camera direction, and the two on the right control backwards/forwards movement.
Rather than relist all the code from before, I will just link it from my site. Most of the code remains untouched, outside of moving files into sub folders, and the changes to the render system. There is also a bug fix included in the raycasting engine to fix the texture offset returned for each wall slice to draw.
You can download the full source from here
Questions and comments always welcomed :)