Example #1
0
        public SPGame()
        {
            _manager = new Manager();
            _world = new World(Groups.GroupArray, 21, 16, 16.ToUnits());
            Factory = new Factory(this, _manager, _world);

            OnUpdate += _manager.Update;
            OnUpdate += UpdateInputs;
            OnUpdate += mFrameTime => GameWindow.RenderWindow.SetTitle(((int) GameWindow.FPS).ToString());

            OnDrawBeforeCamera += () => GameWindow.RenderWindow.Clear(new Color(125, 125, 185));

            InitializeInputs();
            NewGame();
        }
Example #2
0
 public Factory(SPGame mGame, Manager mManager, World mWorld)
 {
     _game = mGame;
     _manager = mManager;
     _world = mWorld;
 }