Пример #1
0
        public InGameScreen(int widthScreen, int heightScreen, IScreenMaster master)
            : base(widthScreen, heightScreen, master)
        {
            LevelLoader load = LevelLoader.GetCurrentLoader();

            lvl = load.CreateLevel(this);
        }
Пример #2
0
 public void CloseGame()
 {
     _gameObjects.Clear(); _gameObjects = null;
     _newGameObjects.Clear(); _newGameObjects = null;
     _removedGameObjects.Clear(); _removedGameObjects = null;
     _player = null;
     _level = null;
     _canvas = null;
     _renderer = null;
 }
Пример #3
0
 public World(Canvas c)
 {
     _canvas = c;
     _level = new Level() { Background = new SolidColorBrush(Colors.Aqua) };
     _renderer = new CanvasRenderer(c);
     _gameObjects = new Dictionary<UInt32, GameObject>(10);
     _newGameObjects = new Queue<GameObject>(10);
     _removedGameObjects = new Queue<GameObject>(10);
     _player = new Player();
 }