Exemple #1
0
 protected override void Initialize()
 {
     _tileMap = new TileMap();
     _player = new MarsRover(this, new Point(0,0),Orientation.NORTH);
     Components.Add(_player);
     _player.MoveRover(Move.Forward); //move one step forward
     base.Initialize();
 }
Exemple #2
0
        protected override void Initialize()
        {
            _player = new MarsRover(this, new Point(0,0),Orientation.NORTH);
            _tileMap = _player.Controller.Tilemap;
            Components.Add(_player);

            _player.Controller.MoveRover("fflfffffrfffflffffrflffffrflffrf");

            base.Initialize();
        }