Пример #1
0
        public Reaper(GameObject reaper, EffectManager _effectManager, GameObject baby)
        {
            this._reaper = reaper;
            this._baby = baby;
            this._effectManager = _effectManager;

            _reaper.Body.Position = new Vector2(100, 100);
        }
Пример #2
0
 public GameObjectManager(World world, RenderManager renderMan, EffectManager effectManager)
 {
     _world = world;
     _renderManager = renderMan;
     _effectManager = effectManager;
 }
Пример #3
0
 /// <summary>
 /// Allows the game to perform any initialization it needs to before starting to run.
 /// This is where it can query for any required services and load any non-graphic
 /// related content.  Calling base.Initialize will enumerate through any components
 /// and initialize them as well.
 /// </summary>
 public void Initialize(GraphicsDevice graphicsDevice)
 {
     _graphicsDevice = graphicsDevice;
     _renderManager = new RenderManager(_graphicsDevice);
     _effectManager = new EffectManager(Content);
     _gameObjectManager = new GameObjectManager(_world, _renderManager, _effectManager);
 }