Original Post
Alright guys, I am making a 2d tile-based game using SDL for my C++ programming class, and I am currently designing the CSprite base class. So what is the best way to store animations for a sprite? I was thinking of storing it as text file: Each coordinate pair represents a tile in the tileset where 0,0 is the first tile. What do you think? I've got till May 17 to get the game done, so the quickest method would be good to know.
WalkNorth:
(0,0)(0,1)(0,2)(0,3)(0,4)(0,5)
WalkSouth:
(1,0)(1,1)(1,2)(1,3)(1,4)(1,5)
WalkEast:
(2,0)(2,1)(2,2)(2,3)(2,4)(2,5)
StandLeft:
(2,0)(2,1)(2,2)(2,3)(2,4)(2,5)