I took a break and worked on other projects. When I came back, I added some debug code to draw the obstructions on the tiles themselves. When I did, I accidentally changed the order to be correct.
The funny thing about this is I got it right the first time--I don't even recall finding the RTS doc to be ambiguous about it. I guess it just seemed natural to me that the order would go header-obstructions-header-obstructions (especially since the header includes a "has obstructions" flag) that the uncollated order never occurred to me.
I guess I didn't use maps quite like FJ's.
I'm curious why you say that TurboSphere is overengineered. I certainly agree that it has a lot of NIH in it, and that the new drawing system is somewhat complex.
Huh. If you want to modify what an FBO contains--for instance, to tell what the value a particular pixel is--you would still need to download it from the video card. If you modified a certain pixel, you could surely do that by a drawing operation, but as far as direct access and especially reading results into software, you face the same issues you would just using GL textures.
Quote from: Flying Jester on March 31, 2015, 02:31:25 amHuh. If you want to modify what an FBO contains--for instance, to tell what the value a particular pixel is--you would still need to download it from the video card. If you modified a certain pixel, you could surely do that by a drawing operation, but as far as direct access and especially reading results into software, you face the same issues you would just using GL textures.That's the beauty of it though--the way Allegro is set up you very rarely have to cross the hard/software barrier. The only time I ever lock a bitmap is to load an image from disk, otherwise I let Allegro do it all in hardware. It's awesome that way.
Quote from: Flying Jester on March 31, 2015, 02:22:45 amI'm curious why you say that TurboSphere is overengineered. I certainly agree that it has a lot of NIH in it, and that the new drawing system is somewhat complex.I don't know, I guess because I'm of the KISS/YAGNI school of development, seeing you overthink all the new additions and agonize over how best to implement them makes me roll my eyes. Just call it difference of opinion I guess. I like to see results quickly and let the program develop mostly organically; I'm not afraid of a little refactoring if things start to get too hairy.