Controlled Doses of Exceptional Blather

Wednesday, March 18, 2009

Mother do you think they'll drop the bomb?

Coded quite a while last night, interspersed with some acoustical guitar thrashing. ...Been trying to learn some simple songs to play and sing along to, you know so when I go camping this summer I have campfire songs. :P Last night it was Mother by Pink Floyd. Listened to it over and over and over to get it in my head then played it and sang it well first go 'round. ...Ohh yeah, and coded!

Progress
So yesterday I said I would accomplish at least 2 sizable things (correcting input control of acceleration/deceleration of the ship, and also addition of camera tracking) in addition to possibly more. Well, the first thing was much more involved than I anticipated. It took a great deal of planning and testing to get the input to differentiate between being held in a certain direction vs. being tapped in a direction. Then I also had to account for the ship facing left or right and how that would effect movement. Plus, as I mentioned before I had to deal with throttling the ship speed to within certain values. PLUS, I had to put several timers in so that as a button was held it wouldn't activate every 1/60th of a second (it being a 60 fps game). PLUS PLUS, I put in several control schemes for the ship based on it's status. If it's docked or turning, certain controls are possible while others aren't. :)
But that's out of the way now! I can accelerate/decelerate by 1% max speed per 10th of a second. I can tap left or right and it will accelerate/decelerate by 20% of max speed. It will stop at 0 speed. It will stop speeding up at 100% max speed. And all this is displayed on the screen. Plus, I can turn the ship around to face the other direction if I go to 0 speed and continue the other direction. Dandy!

Next On The Agenda
Tonight I will try to accomplish the things I was going to do last night but didn't get to. That's 2 things. The tracking of the camera to follow the ship (actually, following in front of the ship). And coding the controls for climbing and diving. Reconsidering, I think the climb/dive code would be more useful to work on first, since it's related to the control scheme coding I did last night. Might as well finish it before moving on, ehh? Camera control and map panning will come after controls.

'Til next time... You'll always be baby to me.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]



<< Home