From 27c5b5d948912592f7813fbfab514425ce5ab02f Mon Sep 17 00:00:00 2001 From: sigonasr2 Date: Sat, 26 Aug 2023 00:29:23 -0500 Subject: [PATCH] Add minimap dots --- olcCodeJam2023Entry/Info.txt | 16 ++++++++++++++++ olcCodeJam2023Entry/VirusAttack.cpp | 3 +++ .../olcCodeJam2023Entry.vcxproj.filters | 4 +++- 3 files changed, 22 insertions(+), 1 deletion(-) diff --git a/olcCodeJam2023Entry/Info.txt b/olcCodeJam2023Entry/Info.txt index f5ede8a..38676ee 100644 --- a/olcCodeJam2023Entry/Info.txt +++ b/olcCodeJam2023Entry/Info.txt @@ -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 (Grey out non-important bars) diff --git a/olcCodeJam2023Entry/VirusAttack.cpp b/olcCodeJam2023Entry/VirusAttack.cpp index 2aeeebf..4efa31e 100644 --- a/olcCodeJam2023Entry/VirusAttack.cpp +++ b/olcCodeJam2023Entry/VirusAttack.cpp @@ -131,6 +131,9 @@ void VirusAttack::DrawMinimap(){ } } 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(); SetDrawTarget(nullptr); DrawDecal(minimapTL,MINIMAP_OUTLINE.Decal()); diff --git a/olcCodeJam2023Entry/olcCodeJam2023Entry.vcxproj.filters b/olcCodeJam2023Entry/olcCodeJam2023Entry.vcxproj.filters index 9a54560..340a711 100644 --- a/olcCodeJam2023Entry/olcCodeJam2023Entry.vcxproj.filters +++ b/olcCodeJam2023Entry/olcCodeJam2023Entry.vcxproj.filters @@ -80,6 +80,8 @@ - + + Documents + \ No newline at end of file