Add minimap dots

This commit is contained in:
sigonasr2 2023-08-26 00:29:23 -05:00
parent e632af5d58
commit 27c5b5d948
3 changed files with 22 additions and 1 deletions

View File

@ -1,3 +1,19 @@
Left Shifter
Right Shifter
Bit Repair
Memory Swapper
Corrupter (Randomly destroys bits)
Pipes
Attach collectors to them
Memory Structure (Allocators)
RAM Bank (Creates new Memory Structures) has its own rate of creation based on Procedure amount.
Range/Attack indicators
System has limited resources, both sides fight for resources.
Tutorial Tutorial
(Grey out non-important bars) (Grey out non-important bars)

View File

@ -131,6 +131,9 @@ void VirusAttack::DrawMinimap(){
} }
} }
DrawRect((game.GetWorldOffset()/worldPixelSize*64),viewingTilesPct*64/game.GetWorldScale()); DrawRect((game.GetWorldOffset()/worldPixelSize*64),viewingTilesPct*64/game.GetWorldScale());
for(auto&u:units){
FillRect(u->GetPos()/worldPixelSize*64,vf2d{2,2}*u->GetUnitSize()/24,u->IsFriendly()?GREEN:RED);
}
MINIMAP_OUTLINE.Decal()->Update(); MINIMAP_OUTLINE.Decal()->Update();
SetDrawTarget(nullptr); SetDrawTarget(nullptr);
DrawDecal(minimapTL,MINIMAP_OUTLINE.Decal()); DrawDecal(minimapTL,MINIMAP_OUTLINE.Decal());

View File

@ -80,6 +80,8 @@
</Image> </Image>
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Text Include="Info.txt" /> <Text Include="Info.txt">
<Filter>Documents</Filter>
</Text>
</ItemGroup> </ItemGroup>
</Project> </Project>