Thursday, February 7, 2013

Long delayed entry

I haven t written on this blog for a while. So lets summarize the past couple of weeks. First of all I finally managed to get my hands on my own personal Mac Mini and can finally work on things on my own pace. Last week's assignment was almost done but the problem I encountered was the fact that I couldn't save each texture individually. Turns out I was trying to do it the wrong way. The problem was the fact that I was trying to save the textures after loading them on the Open GL texture and that wasn't working. With Ed's Sprite class it turns out it was easier than I thought. Other than that I was pretty confident on projecting and loading images. This week's assignment was fairly easier. A lot of things were prepared for us and we just had to get in and arrange them. Again though due to the flu that was ravaging me these past 5 days my up time was limited, though it was enough to get things working.
While making the animation class I figured I should simplify things as much as possible. I added a start animating boolean just in case we want to lock the animations in the future. But due to the fact that the animations are invoked outside the class it s kind of unnecessary. I was thinking about inheriting from the SpriteObject class to make the animation class but it turns out there were a lot of unnecessary things and the whole system didn't fit well in my head, since the animation isn t just a wrapper for the sprites , it s more like a container. And since SpriteObject is a superclass I figured I should keep my dependencies away from it. I had to revamp the Sprite Object a bit, by making some attributes public, and adding some more like an extra pointer for when we hook up the sprite to the animation. The timer was pretty simple to make through the example and it seems to be working fine.
Next week I ll be working on adding the collision manager and adding the Box2D physics.

Monday, January 21, 2013

The training keeps on going

I ve been viewing tutorials and reading through forums and I m close to getting this done. Sadly my laptop that stopped working isn't helping much

Sunday, January 13, 2013