Пример #1
0
        public TileEditor(TileEngine tileEngine)
            : base()
        {
            this.tileEngine = tileEngine;

            layers   = new LayerManager <TileLayer>();
            tilesets = new TilesetManager();

            view = new BasicView();

            keyboardInputListener = new KeyboardInputListener();
            mouseInputListener    = new MouseInputListener();
            inputManager          = new InputManager(keyboardInputListener, mouseInputListener);

            brushBuckets = new Dictionary <Tileset, BrushBucket>();

            backgroundColor = Color.CornflowerBlue;
        }
Пример #2
0
 public Tile(TileEngine tileEngine, int x, int y)
     : this(tileEngine)
 {
     X = x;
     Y = y;
 }