lightened shadow; added rotor shadows to heli; stripped some duplication; still a lot left though

This commit is contained in:
Chris Forbes
2009-11-10 21:12:31 +13:00
parent 14910762c8
commit c00bce8bf8
4 changed files with 32 additions and 8 deletions

View File

@@ -104,5 +104,10 @@ namespace OpenRa.Game.Traits
return Tuple.New(s, loc.Round(), self.Owner.Palette);
}
public static Tuple<Sprite, float2, int> CenteredShadow(Actor self, Sprite s, float2 location)
{
var loc = location - 0.5f * s.size;
return Tuple.New(s, loc.Round(), 8);
}
}
}