Esempio n. 1
0
        public override void Draw(SpriteBatch spriteBatch, Loc offset)
        {
            Loc drawLoc = GetDrawLoc(offset);

            DirSheet sheet = GraphicsManager.GetItem(Sprite);

            sheet.DrawDir(spriteBatch, drawLoc.ToVector2(), 0);
        }
Esempio n. 2
0
 public override Loc GetDrawSize()
 {
     return(new Loc(GraphicsManager.GetItem(Sprite).TileWidth, GraphicsManager.GetItem(Sprite).TileHeight));
 }
Esempio n. 3
0
 public override Loc GetDrawLoc(Loc offset)
 {
     return(new Loc(MapLoc.X + GraphicsManager.TileSize / 2 - GraphicsManager.GetItem(Sprite).TileWidth / 2,
                    MapLoc.Y + GraphicsManager.TileSize / 2 - GraphicsManager.GetItem(Sprite).TileHeight / 2 - LocHeight) - offset);
 }