PsyOps

gametimer

Jan 5th, 2013
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. public void GameTimer(object source, ElapsedEventArgs e)
  2. {
  3.  
  4. BotVehicle.Update(0.1);
  5.  
  6. ushort newX = (ushort)BotVehicle.Pos.X;
  7. ushort newY = (ushort)BotVehicle.Pos.Y;
  8.  
  9. botpos.ShipRotation = adjust(botpos,newX, newY);
  10. botpos.MapPositionX = newX;
  11. botpos.MapPositionY = newY;
  12. Game(botpos);
  13. }
Advertisement
Add Comment
Please, Sign In to add comment