Closed Anstow closed 10 years ago
I agree.
It seems like the most natural thing to do is to use the frame list as a backend and create a new class for animations.
That's possible. I think that it should fulfil a collision-detection role as well, e.g. CollisionGrid
For the moment I'm calling the base class a SpriteSheet.
It's possible I misunderstood you. I thought you meant a tile-grid for maps. FrameList currently allows you to have a spritesheet and specify an index into it - see the Tile and Player classes in Stranded.
Yes, I'd misunderstood the current code.
You may be right about it being better as a derived class. It made sense aggregating image before, but it's been revised since then. I'll look at it once my exams are finished.
A tilemaps class has been added. It could do with some more features but this is done for now.
I feel like it would be nice to have a Tilemap class.