zomg, spinning tank turrets!

zomg, infantry work now!
zomg, FASTER

git-svn-id: svn://svn.ijw.co.nz/svn/OpenRa@1201 993157c7-ee19-0410-b2c4-bb4e9862e678
This commit is contained in:
chrisf
2007-07-13 14:39:28 +00:00
parent bcafc89002
commit 69dcbaaa70
4 changed files with 28 additions and 15 deletions

View File

@@ -16,14 +16,21 @@ namespace OpenRa.Game
int GetFacing()
{
int x = (Environment.TickCount >> 6) % 64;
return x < 32 ? x : 63 - x;
int x = (Environment.TickCount >> 6) % 32;
return x;
//return x < 32 ? x : 63 - x;
}
public override SheetRectangle<Sheet>[] CurrentImages
{
get { return new SheetRectangle<Sheet>[] { UnitSheetBuilder.McvSheet[GetFacing()] }; }
get
{
return new SheetRectangle<Sheet>[]
{
UnitSheetBuilder.McvSheet[GetFacing()],
UnitSheetBuilder.McvSheet[63 - GetFacing()]
};
}
}
}
}