Exemple #1
0
        public DoorTile(string filename, int cols, int rows, TiledObject obj) : base(filename, cols, rows)
        {
            width  = (int)obj.Width;
            height = (int)obj.Height;

            visible = false;

            SetOrigin(width / 2, height / 8);
            Goto = obj.GetStringProperty("GoTo");
        }
Exemple #2
0
        public ActivityTile(string filename, int cols, int rows, TiledObject obj) : base(filename, cols, rows)
        {
            width  = (int)obj.Width;
            height = (int)obj.Height;

            visible = false;

            SetOrigin(width / 2, height / 2);

            Activity = obj.GetStringProperty("Activity");
        }