示例#1
0
        public TileEditorManager(ContentManager Content, PlanetLevel inputLevel, GameWindow gameWindow)
        {
            State = "Loading";
            var baseSize = Content.Load <Texture2D>(@"Tileset/Earth/Tile_Earth_Wall");

            this.baseSize = baseSize.Width;
            hud           = new SelectionHUD(Content);
            layoutCam     = new Camera2D(gameWindow);
            //input = new EditorInput(baseSize.Width);
            render      = new RenderLevel(_textureManager);
            select      = new SelectTile(this.baseSize);
            planetLevel = inputLevel;
            State       = "Rendering";
        }
示例#2
0
        public TileEditorManager(
            ContentManager Content,
            SpriteBatch spriteBatch,
            TextureManager textureManager,
            GameWindow gameWindow)
        {
            _textureManager = textureManager;
            _spriteBatch    = spriteBatch;

            State = "Loading";
            var baseSize = _textureManager.Wall;

            this.baseSize = baseSize.Width;

            hud       = new SelectionHUD(Content);
            layoutCam = new Camera2D(gameWindow);
            render    = new RenderLevel(_textureManager);
            select    = new SelectTile(this.baseSize);

            layoutCam.Pos = planetLevel.SetToMiddle(planetLevel);
            State         = "Rendering";
        }