cxong / cdogs-sdl

Classic overhead run-and-gun game
https://cxong.github.io/cdogs-sdl/
GNU General Public License v2.0
868 stars 115 forks source link

Sprite variations for map objects #767

Open cxong opened 1 year ago

cxong commented 1 year ago

Instead of using one sprite to show map objects, we can convert them to a spritesheet and have the game randomly pick one to display. This way we can show slight variations to break up the monotony. For example, different books on the bookshelf. AnimatedRandom can be used as the sprite type, and need to add a way of showing the same frame forever.