예제 #1
0
        public Tile(Vector2f pos, TileType type, bool istop) : base(pos)
        {
            Type = type;
            Top  = istop;
            DrawSprite.Texture     = TileTools.TileMap;
            DrawSprite.TextureRect = new IntRect((Vector2i)TileTools.getTileTypeTextureCoords(type), new Vector2i(32, 48));
            DrawSprite.Scale       = new Vector2f(2, 2);

            Selection.FillColor = new Color(100, 100, 50, 100);
            Selection.Rotation  = 30;
        }
예제 #2
0
 public void setType(TileType type)
 {
     Type = type;
     DrawSprite.TextureRect = new IntRect((Vector2i)TileTools.getTileTypeTextureCoords(type), new Vector2i(32, 48));
 }