From bb522fa9ba0118d45d42123c7c6f898f7580acc3 Mon Sep 17 00:00:00 2001 From: Mikhail Abramov Date: Mon, 7 Oct 2019 11:11:39 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9C=D0=B5=D0=BB=D0=BA=D0=B8=D0=B5=20=D0=B1?= =?UTF-8?q?=D0=B0=D0=B3=D0=B8,=20=D1=84=D0=B0=D0=B9=D0=BB=20=D0=BF=D1=80?= =?UTF-8?q?=D0=BE=D0=B5=D0=BA=D1=82=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- FallSimulation.cbp | 43 +++++++++++++++++++++++++++++++++++++++++++ FallSimulation.cpp | 13 ++++++++----- 2 files changed, 51 insertions(+), 5 deletions(-) create mode 100644 FallSimulation.cbp diff --git a/FallSimulation.cbp b/FallSimulation.cbp new file mode 100644 index 0000000..74959d6 --- /dev/null +++ b/FallSimulation.cbp @@ -0,0 +1,43 @@ + + + + + + diff --git a/FallSimulation.cpp b/FallSimulation.cpp index e354189..4bcd291 100644 --- a/FallSimulation.cpp +++ b/FallSimulation.cpp @@ -51,10 +51,10 @@ int main() block = txLoadImage("pictures\\block.bmp"); quest = txLoadImage("pictures\\question.bmp"); - orange_but = txLoadImage("pictures\\orange_but.bmp"); - green_but = txLoadImage("pictures\\green_but.bmp"); - blue_but = txLoadImage("pictures\\blue_but.bmp"); - purple_but = txLoadImage("pictures\\purple_but.bmp"); + //orange_but = txLoadImage("pictures\\orange-but.bmp"); + //green_but = txLoadImage("pictures\\green-but.bmp"); + //blue_but = txLoadImage("pictures\\blue-but.bmp"); + //purple_but = txLoadImage("pictures\\purple-but.bmp"); middleX = txGetExtentX() / 2; middleY = txGetExtentY() / 2; @@ -226,6 +226,9 @@ void mainFunc() }; MapPart mapParts[12]; + for (int elem = 0; elem < 12; elem++) { + mapParts[elem].visible = false; + } bool clickedBlock = false; bool clickedQuest = false; @@ -300,7 +303,7 @@ void mainFunc() switch(mapParts[elem].blocktype) { case BLOCK_TYPE: - lvlfile << "Block" + lvlfile << "Block"; } } }