Add minimap dots

CorrectiveAction
sigonasr2 1 year ago
parent e632af5d58
commit 27c5b5d948
  1. 16
      olcCodeJam2023Entry/Info.txt
  2. 3
      olcCodeJam2023Entry/VirusAttack.cpp
  3. 4
      olcCodeJam2023Entry/olcCodeJam2023Entry.vcxproj.filters

@ -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)

@ -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());

@ -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>
Loading…
Cancel
Save