Working renderer and movement 5 5
My first attempt at a raycaster is made in Rust and finally getting some progress. I'm basically following the Lodev tutorial while making the code a bit more object-oriented.
The first fancy thing I've done is making the game map load from a PNG file, with each pixel matching with a tile. Even the color palette is dynamically loaded (from another PNG holding a single row of pixels), and can be easily changed. Indexes in the palette hold the semantics of each tile:
- Index 0 is a floor
- Index Len - 1 is the player spawn
- Index Len - 2 is the initial tile the player is looking at
- Other indexes are walls of various colors
Wow, that's a bit hardcore! What made you want to load it from a PNG? Is that easier to edit than, say, a tilemap? I guess the minimap is just that image, right? Looks very cool.
Congrats on getting the renderer up and running. Can't wait to play it :)