public ContentHandler(IServiceProvider serviceProvider, string rootDirectory) : base(serviceProvider, rootDirectory)
 {
     if (Instance == null)
     {
         Instance = this;
     }
 }
Exemplo n.º 2
0
        // TODO: Make a tilemap manager

        public Game()
        {
            Window.ClientSizeChanged += OnWindowResize;
            Graphics = new GraphicsDeviceManager(this);
            Content.RootDirectory = "Content";
            ContentHandler        = new ContentHandler(Content.ServiceProvider, Content.RootDirectory);
            IsMouseVisible        = true;

            Camera = new Camera2D(320, 180);
        }