Ejemplo n.º 1
0
        public WalkerModel(List <Visualizer2D.Wall> walls, Visualizer2D.Player player, Visualizer2D.Exit exit)
        {
            Walls = walls.ConvertAll(x => new WalkerWall(x));

            Player        = new WalkerPlayer(player);
            Exit          = new WalkerExit(exit);
            startPosition = player.Position.Clone();
            CreatePhisycs();
        }
Ejemplo n.º 2
0
 public void Clear()
 {
     Walls  = null;
     Player = null;
     Exit   = null;
 }
Ejemplo n.º 3
0
 public WalkerExit(Visualizer2D.Exit exit)
 {
     Collider = new Visualizer2D.CircleCollider(exit.Position, 20.0f);
     Position = exit.Position;
 }