Friday, March 20, 2009
Weapons firing done
One of the big problems that i encountered was to get the weapons to fire automatically, based on the position of the enemy. You find the angle by using tan(a) = y/x and then use sin(a) and cos(a) to make the weapons fire the projectile in the right direction. Now the next thing that I will do is to make the shields flicker whenever the ship takes damage. That ought to be fun!
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment