FINGIN wrote:
1. which is more efficent, sprite version or array version?
2. to sprite version, how would you add an enemy or something?
3. how would I get a floor to match up with the raycaster walls?
thanks
1) Usually an array version is more efficient, but if you plan on using turbo mode, there's really no difference.
2) You would add a costume that stamps a color or another sprite that goes to an x-y location on your map and when the scanning sprite touches it, it stores it as a number in a list that identifies the wall or enemy or whatever and stamps a costume at the correct location.
3) You could have the floor draw up from the bottom to the bottom of the wall and then change to the wall color and draw that segment of the wall. So basically, each segment of wall has it's own segment of floor. However, the easiest way to do this is to simply change the stage into two halves (top and bottom) and color them differently.
Offline