Wednesday, April 9, 2008

A Apple hit my head ...

Last week I spend around 5 minutes in coding anything usefull, and even less in doing anything meaningfull, I think oyu can imagne how I feel now about the last week ...

And just on monday I've seen something that should change my code, and now is the moment I'll start with it!

I watched Serenity and found out that the system I used till now woun't work in futur. Till now I tolled the space ship where to be in the next frame, but that would get hard to tell, once I start to make stuff like landing on planets (shaking), or if one of two engines is brocken and the ship starts turning around all three axis ...

And so I plan to use some physics for that, easy stuff like F=m*a => a=F/m only to accelorate the ship and later a use a little method to change the resulting Vector based on the rotation of the ship. (I easyly could turn the velocity vector, but that would not fit to my planed design ;) ).

That would be the first step to create the final ship behav, with anti- external force shields, anti momentum shields, atmosspheric control trusters, multiple engines typs and all that stuff can be toggled on and off.
That would add a nice simulation touch to my game. I your ship is heading towards a enemy ship and you start shooting, but instead of stoping shooing and flying pass the ship, you just disable your anti momentum shield and the thrusters, so that you can turn your ship will you stay on your flypath, enabling you to continuo the shooting.

Its just a little detail and the player may woun't use it that often, ... but he can!

So enougth talk, I'll now grap my old prototype and try to applay that new system, wish me luck!


Greg the Mad

No comments: