예제 #1
0
        public UndiscoveredTile(bool stat, Vector2 position, Tile[,] tiles) : base(Spritesheet, position, tiles, new Point(SpritesheetSize.X - 3, SpritesheetSize.Y - 3), new Point(3))
        {
            Static = stat;

            if (Static)
            {
                Values = new TextureSpot[3, 3] {
                    { TextureSpot.MIDMID, TextureSpot.MIDMID, TextureSpot.MIDMID }, { TextureSpot.MIDMID, TextureSpot.MIDMID, TextureSpot.MIDMID }, { TextureSpot.MIDMID, TextureSpot.MIDMID, TextureSpot.MIDMID }
                }
            }
            ;
            else
            {
                Values = new TextureSpot[3, 3] {
                    { TextureSpot.TOPLEFT, TextureSpot.TOPMID, TextureSpot.TOPRIGHT }, { TextureSpot.MIDLEFT, TextureSpot.MIDMID, TextureSpot.MIDRIGHT }, { TextureSpot.BOTLEFT, TextureSpot.BOTMID, TextureSpot.BOTRIGHT }
                }
            };
        }
예제 #2
0
 public DirtTile(Vector2 position, Tile[,] tiles) : base(Spritesheet, position, tiles, new Point(6, 0), new Point(3))
 {
     Values = new TextureSpot[3, 3] {
         { TextureSpot.TOPLEFT, TextureSpot.TOPMID, TextureSpot.TOPRIGHT }, { TextureSpot.MIDLEFT, TextureSpot.MIDMID, TextureSpot.MIDRIGHT }, { TextureSpot.BOTLEFT, TextureSpot.BOTMID, TextureSpot.BOTRIGHT }
     };
 }
예제 #3
0
 public GrassTile(Vector2 position, Tile[,] tiles) : base(Content.Load <Texture2D>("tiles/spritesheet"), position, tiles, Point.Zero, new Point(3, 3))
 {
     Values = new TextureSpot[3, 3] {
         { TextureSpot.TOPLEFT, TextureSpot.TOPMID, TextureSpot.TOPRIGHT }, { TextureSpot.MIDLEFT, TextureSpot.MIDMID, TextureSpot.MIDRIGHT }, { TextureSpot.BOTLEFT, TextureSpot.BOTMID, TextureSpot.BOTRIGHT }
     };
 }