Hi, I'm trying to make a 2d fighting game in which you can equip different weapons. As I want to have multiple weapons, it's impossible to use sprite-sheets because I would have to re-draw every animation for each weapon. So I'm thinking of using a bone based animation system.
However, I'm using allegro(a library similar to sdl), and allegro does not provide any animation system. So I will have to create an animation system from scratch. It's my first time doing something like this(I've been using sprite-sheets until now) so I don't have any idea on how to do it.
I guess I can create a bone class, and each bone has a child bone. The child bone is rendered at the end of the parent bone and then the rotation is applied. But is this the right/most-efficent approach? Should I somehow "save" my animation instead of re-calculating all of the bone's position each frame?
I'm not asking for all the code I need to implement it in my game, just some advices or techniques that I can use. Thanks!