Exemple #1
0
 public void MoveNow(Room CurrentRoom)
 {
     MovePlayer((float)(MyPlayer.Velocity * Math.Cos(MyPlayer.newTheta)), (float)(MyPlayer.Velocity * Math.Sin(MyPlayer.newTheta)), CurrentRoom);
     //MyPlayer.Position.Y += (float)(MyPlayer.Velocity * Math.Sin(MyPlayer.newTheta));
     //this.MyPlayer.Position.X += (float)(MyPlayer.Velocity * Math.Cos(MyPlayer.newTheta));
     MyPlayer.SetOrigin();
 }