infantry squads; a bit tight at the moment.

This commit is contained in:
Chris Forbes
2009-11-01 13:15:23 +13:00
parent dbef9e4a45
commit 783b9e9f5f
8 changed files with 115 additions and 12 deletions

View File

@@ -17,15 +17,9 @@ namespace OpenRa.Game.Traits
/ (256/anim.CurrentSequence.Length));
}
protected static Pair<Sprite, float2> Centered(Sprite s, float2 location)
{
var loc = location - 0.5f * s.size;
return Pair.New(s, loc.Round());
}
public override IEnumerable<Pair<Sprite, float2>> Render(Actor self)
{
yield return Centered( anim.Image, self.CenterLocation );
yield return Util.Centered(anim.Image, self.CenterLocation);
}
}
}