Мелкие баги, файл проекта

This commit is contained in:
Mikhail Abramov 2019-10-07 11:11:39 +03:00 committed by GitHub
parent 372ad4445d
commit bb522fa9ba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 51 additions and 5 deletions

43
FallSimulation.cbp Normal file
View file

@ -0,0 +1,43 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<CodeBlocks_project_file>
<FileVersion major="1" minor="6" />
<Project>
<Option title="FallSimulation" />
<Option pch_mode="2" />
<Option compiler="gnu_gcc_compiler__strict__fast_single_files_only" />
<Build>
<Target title="Debug">
<Option output="bin/Debug/FallSimulation" prefix_auto="1" extension_auto="1" />
<Option object_output="Q:/Users/student.ATIAM/Downloads/FallSimulator-master/.objs" />
<Option type="0" />
<Option compiler="gnu_gcc_compiler__strict__fast_single_files_only" />
<Compiler>
<Add option="-g" />
</Compiler>
</Target>
<Target title="Release">
<Option output="bin/Release/FallSimulation" prefix_auto="1" extension_auto="1" />
<Option object_output="obj/Release/" />
<Option type="0" />
<Option compiler="gnu_gcc_compiler__strict__fast_single_files_only" />
<Compiler>
<Add option="-O2" />
</Compiler>
<Linker>
<Add option="-s" />
</Linker>
</Target>
</Build>
<Compiler>
<Add option="-Wall" />
<Add option="-fexceptions" />
</Compiler>
<Unit filename="FallSimulation.cpp" />
<Extensions>
<code_completion />
<envvars />
<debugger />
<lib_finder disable_auto="1" />
</Extensions>
</Project>
</CodeBlocks_project_file>

View file

@ -51,10 +51,10 @@ int main()
block = txLoadImage("pictures\\block.bmp"); block = txLoadImage("pictures\\block.bmp");
quest = txLoadImage("pictures\\question.bmp"); quest = txLoadImage("pictures\\question.bmp");
orange_but = txLoadImage("pictures\\orange_but.bmp"); //orange_but = txLoadImage("pictures\\orange-but.bmp");
green_but = txLoadImage("pictures\\green_but.bmp"); //green_but = txLoadImage("pictures\\green-but.bmp");
blue_but = txLoadImage("pictures\\blue_but.bmp"); //blue_but = txLoadImage("pictures\\blue-but.bmp");
purple_but = txLoadImage("pictures\\purple_but.bmp"); //purple_but = txLoadImage("pictures\\purple-but.bmp");
middleX = txGetExtentX() / 2; middleX = txGetExtentX() / 2;
middleY = txGetExtentY() / 2; middleY = txGetExtentY() / 2;
@ -226,6 +226,9 @@ void mainFunc()
}; };
MapPart mapParts[12]; MapPart mapParts[12];
for (int elem = 0; elem < 12; elem++) {
mapParts[elem].visible = false;
}
bool clickedBlock = false; bool clickedBlock = false;
bool clickedQuest = false; bool clickedQuest = false;
@ -300,7 +303,7 @@ void mainFunc()
switch(mapParts[elem].blocktype) switch(mapParts[elem].blocktype)
{ {
case BLOCK_TYPE: case BLOCK_TYPE:
lvlfile << "Block" lvlfile << "Block";
} }
} }
} }