Пример #1
0
 public void AddPlayer(Vec2F pos)
 {
     if (Player == null)
     {
         PlayerStartPosition = pos.Copy();
         Player = new Player();
         Player.Shape.Position = pos;
     }
 }
Пример #2
0
 public static Vec2F Normalize(Vec2F v)
 {
     return(v.Copy() * (1.0f / (float)v.Length()));
 }