diff --git a/C++ProjectTemplate b/C++ProjectTemplate index 9fa0fcb..691bb20 100755 Binary files a/C++ProjectTemplate and b/C++ProjectTemplate differ diff --git a/main.cpp b/main.cpp index 27b9f76..ec58eac 100644 --- a/main.cpp +++ b/main.cpp @@ -48,9 +48,6 @@ public: if (GetKey(olc::LEFT).bPressed) { partyMemberCount=max(partyMemberCount-1,1); } - if (GetMouse(0).bPressed) { - engine.PlayWaveform(&se1); - } drawGame(); // called once per frame @@ -61,19 +58,31 @@ public: } void drawBox(const olc::vi2d &pos, const olc::vi2d &size, olc::Pixel p = olc::WHITE, olc::Pixel p2 = olc::DARK_GREY, olc::Pixel p3 = olc::VERY_DARK_GREY) { + FillRectDecal({pos.x+3,pos.y+3},{size.x-5,size.y-5},p); DrawRect({pos.x,pos.y},size,p2); DrawRect({pos.x+2,pos.y+2},{size.x-4,size.y-4},p3); - DrawRect({pos.x+1,pos.y+1},{size.x-2,size.y-2}); + DrawRect({pos.x+1,pos.y+1},{size.x-2,size.y-2},p); Draw({pos.x,pos.y},olc::BLACK); Draw({pos.x+size.x,pos.y+size.y},olc::BLACK); Draw({pos.x+size.x,pos.y},olc::BLACK); Draw({pos.x,pos.y+size.y},olc::BLACK); } + void drawCheckerboardBox(const olc::vi2d &pos, const olc::vi2d &size, olc::Pixel p = olc::WHITE, olc::Pixel alternatingCol = olc::WHITE, const olc::vi2d &checkerboardSize = {3,3}, olc::Pixel p2 = olc::DARK_GREY, olc::Pixel p3 = olc::VERY_DARK_GREY) { + drawBox(pos,size,p,p2,p3); + for (int x=3;x