Controlled Doses of Exceptional Blather

Tuesday, March 24, 2009

Hullaballoo

Lookin' like I'll be working alot again. First day of another 3-day work spree... woo! The first one tired me out, but I've had 2 days to recoup. Hopefully, recoup enough so that the next 3 days don't kill me. :P

Progress
Last night I took care of the camera tracking code. It wasn't as simple and straight-forward as I'd anticipated though... I actually ended up trying several approaches with varying complication and was having one heck of a time managing the positioning of the camera, the camera's central pivot, the ship, and the target where I wanted to move the camera to. I was getting all confused because many times the camera would track the opposite direction expected, as if it had inverted X and Y directions, and most times the ship wouldn't even be visible. In the end, the simplest solution worked... it just took me too long (probably due to fatigue) to connect the dots in my brain. :P The end result is close to what I'd wanted, though with playing with it I found it may induce motion sickness if I'm not careful. :P I'll likely tune it more as I go, but the foundation is laid out.

Next Up
As mentioned in my list of things to do previously, after getting the camera tracking down I need to work on the zooming. I also need to work on restricting the camera and ship within the map boundaries. However, I realize with my testing now that the camera is actually panning, that there's another thing I have to do. I need to fix the parallax scrolling. You know, when background layers pan slower than the foreground layers? That's not functional at all now. It needs to be. I will likely work on this prior to my map-boundary restriction tasks, as it's going to be extremely important in the long run.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]



<< Home