Example #1
0
        public FrizzyAdventureGame(BaseServiceLocator serviceLocator)
        {
            _serviceLocator = serviceLocator;

            _graphicsDeviceManager = new GraphicsDeviceManager(this);
            Content.RootDirectory  = ResourceConstants.ContentDirectory;
            this.IsFixedTimeStep   = true;
            this.TargetElapsedTime = TimeSpan.FromSeconds(1d / 60d);
            this.IsMouseVisible    = DefaultWindowConstants.DefaultMouseVisibility;
            _graphicsDeviceManager.PreferredBackBufferHeight = GameConfiguration.WindowHeight;
            _graphicsDeviceManager.PreferredBackBufferWidth  = GameConfiguration.WindowWidth;
            this.Window.Title    = DefaultWindowConstants.WindowTitle;
            this.Window.Position = new Point(GameConfiguration.WindowPositionX, GameConfiguration.WindowPositionY);
        }
Example #2
0
 public ResourceManager(BaseServiceLocator serviceLocator, ContentManager contentManager)
 {
     _contentManager = contentManager;
     _serviceLocator = serviceLocator;
 }
Example #3
0
 public ConfigurationManager(BaseServiceLocator serviceLocator)
 {
     _serviceLocator = serviceLocator;
 }
 public ControllerManager(BaseServiceLocator serviceLocator, KeyboardControllerMapping keyboardControllerMapping)
 {
     _keyboardControllerMapping = keyboardControllerMapping;
     _serviceLocator            = serviceLocator;
 }
Example #5
0
 public MapManager(BaseServiceLocator serviceLocator)
 {
     _serviceLocator = serviceLocator;
 }
 public RendererManager(BaseServiceLocator serviceLocator, GraphicsDeviceManager graphicsDeviceManager, ResourceManager resourceManager)
 {
     _graphicsDeviceManager = graphicsDeviceManager;
     _resourceManager       = resourceManager;
     _serviceLocator        = serviceLocator;
 }
 public GameStateManager(BaseServiceLocator serviceLocator)
 {
     _serviceLocator = serviceLocator;
 }