2d collision and image structure
I decided to start developing a small 2d platform type game because I haven't ever worked with or created a graphical game.
Don't know if you will need this information but I am using opengl and devil.
I don't know of a good way of performing collision detection with the environment which allows strange shapes and slopes without using per-pixel collision. Can anyone offer any insight into the subject?
For object-object collision I'm thinking of using ellipses or squares which are defined seperately from the actual image.
My second question is on how I should store animation information, especially when different frames of the same object seem like they should have different widths/heights (if that should even happen). I have some ideas but I have no idea on what the general/intelligent/flexible/etc. 'standard' way of storing an animation is.
Any help or relative links/articles are greatly appreciately.