diff --git a/help/css/style.css b/help/css/style.css
new file mode 100644
index 0000000..8391859
--- /dev/null
+++ b/help/css/style.css
@@ -0,0 +1,19 @@
+#opensource-text {
+ color: darkturquoise;
+}
+
+span {
+ font-weight: bold;
+}
+
+.spoiler {
+ padding: 10px;
+ background-color: bisque;
+}
+.spoiler > input + .box {
+ display: none;
+}
+
+.spoiler > input:checked + .box {
+ display: block;
+}
\ No newline at end of file
diff --git a/help/img/fallsimulation-editor.png b/help/img/fallsimulation-editor.png
new file mode 100644
index 0000000..591e725
Binary files /dev/null and b/help/img/fallsimulation-editor.png differ
diff --git a/help/img/fallsimulation-loading.png b/help/img/fallsimulation-loading.png
new file mode 100644
index 0000000..73c4d94
Binary files /dev/null and b/help/img/fallsimulation-loading.png differ
diff --git a/help/img/fallsimulation-mainmenu.png b/help/img/fallsimulation-mainmenu.png
new file mode 100644
index 0000000..6403469
Binary files /dev/null and b/help/img/fallsimulation-mainmenu.png differ
diff --git a/help/img/fallsimulation-playlose.png b/help/img/fallsimulation-playlose.png
new file mode 100644
index 0000000..a50ae1d
Binary files /dev/null and b/help/img/fallsimulation-playlose.png differ
diff --git a/help/img/fallsimulation-playmode.png b/help/img/fallsimulation-playmode.png
new file mode 100644
index 0000000..c4cc7a5
Binary files /dev/null and b/help/img/fallsimulation-playmode.png differ
diff --git a/help/img/fallsimulation-playwin.png b/help/img/fallsimulation-playwin.png
new file mode 100644
index 0000000..6a0051a
Binary files /dev/null and b/help/img/fallsimulation-playwin.png differ
diff --git a/help/img/fallsimulation-savedialog.png b/help/img/fallsimulation-savedialog.png
new file mode 100644
index 0000000..583671d
Binary files /dev/null and b/help/img/fallsimulation-savedialog.png differ
diff --git a/help/index.html b/help/index.html
index 70e7975..5406128 100644
--- a/help/index.html
+++ b/help/index.html
@@ -2,7 +2,7 @@
Help HTML File
-
+
@@ -54,7 +54,41 @@
Скриншоты
- Текст сообщения в спойлере
+
+
+
+ Главное меню
+
+
+
+
+ Анимация загрузки
+
+
+
+
+ Создание уровня
+
+
+
+
+ Файл сохранён!
+
+
+
+
+ Играем на своём уровне
+
+
+
+
+ Вы победили!
+
+
+
+
+ Вы проиграли...
+
diff --git a/level1.fslvl b/level1.fslvl
index db944c2..d9563a8 100644
--- a/level1.fslvl
+++ b/level1.fslvl
@@ -1,12 +1,6 @@
-Block,120,420,180,480
-Block,300,360,360,420
-Quest,420,360,480,420
-Block,600,300,660,360
-Block,720,360,780,420
-Block,900,360,960,420
-Quest,1080,420,1140,480
-Fire,420,420,480,480
-Water,840,420,900,480
-Water,780,420,840,480
-Fire,1020,480,1080,540
-Block,480,180,540,240
+Block,120,360,180,420
+Block,300,240,360,300
+Quest,480,240,540,300
+Block,720,300,780,360
+Fire,900,360,960,420
+Block,1020,360,1080,420
diff --git a/lib/Button.h b/lib/Button.h
index 2061cbb..a1b1755 100644
--- a/lib/Button.h
+++ b/lib/Button.h
@@ -10,6 +10,7 @@ struct Button {
void drawButton(Button but);
+//function for drawing button
void drawButton(Button but)
{
//drawing button
diff --git a/lib/ElemFunctions.h b/lib/ElemFunctions.h
index 327c48d..21d631f 100644
--- a/lib/ElemFunctions.h
+++ b/lib/ElemFunctions.h
@@ -18,6 +18,7 @@ bool addingBlock(bool clicked, RECT blockBut, HDC pic,
int readFile(string file, MapPart gettedMapParts[]);
void checkElem(MapPart mapParts[]);
+//function for adding block (in editor)
bool addingBlock(bool clicked, RECT blockBut, HDC pic,
int blocktype, int* arrElem, MapPart mapParts[])
{
@@ -69,6 +70,7 @@ bool addingBlock(bool clicked, RECT blockBut, HDC pic,
return clicked;
}
+//reading parameters for blocks (in play mode)
int readFile(string file, MapPart gettedMapParts[])
{
for (int i = 0; i < MAP_LENGHT; i++) {
@@ -134,6 +136,7 @@ int readFile(string file, MapPart gettedMapParts[])
return arrElem;
}
+//checking for elements with the same coordinates
void checkElem(MapPart mapParts[])
{
for (int elem = 0; elem < MAP_LENGHT; elem++) {
diff --git a/lib/MapPart.h b/lib/MapPart.h
index 478f2af..a6156bb 100644
--- a/lib/MapPart.h
+++ b/lib/MapPart.h
@@ -1,5 +1,7 @@
#pragma once
+//This library containing structure and array for map parts
+
struct MapPart {
RECT coords;
bool visible;
diff --git a/lib/ModesFunctions.h b/lib/ModesFunctions.h
index e5c78e0..3a222a0 100644
--- a/lib/ModesFunctions.h
+++ b/lib/ModesFunctions.h
@@ -17,6 +17,7 @@ void loadingAnimation(int delay, int speed);
void mainFunc();
void playGame(MapPart gettedMapParts[]);
+//function for drawing menu and handling clicks in main menu
void drawMenu()
{
//button "Start" (to start level creating)
@@ -127,12 +128,14 @@ void drawMenu()
}
}
+//function for clear background
void background(COLORREF color)
{
txSetFillColor(color);
txClear();
}
+//loading animation
void loadingAnimation(int delay, int speed)
{
background(TX_WHITE);
@@ -154,6 +157,7 @@ void loadingAnimation(int delay, int speed)
background(TX_WHITE);
}
+//main editor function
void mainFunc()
{
int selectedPict = -1;
@@ -363,6 +367,7 @@ void mainFunc()
}
}
+//main play mode function
void playGame(MapPart gettedMapParts[])
{
int minX = gettedMapParts[0].coords.left;
diff --git a/mylvl1.fslvl b/mylvl1.fslvl
new file mode 100644
index 0000000..db944c2
--- /dev/null
+++ b/mylvl1.fslvl
@@ -0,0 +1,12 @@
+Block,120,420,180,480
+Block,300,360,360,420
+Quest,420,360,480,420
+Block,600,300,660,360
+Block,720,360,780,420
+Block,900,360,960,420
+Quest,1080,420,1140,480
+Fire,420,420,480,480
+Water,840,420,900,480
+Water,780,420,840,480
+Fire,1020,480,1080,540
+Block,480,180,540,240
diff --git a/mylvl2.fslvl b/mylvl2.fslvl
new file mode 100644
index 0000000..2d915b0
--- /dev/null
+++ b/mylvl2.fslvl
@@ -0,0 +1,9 @@
+Block,120,420,180,480
+Block,300,360,360,420
+Block,420,360,480,420
+Quest,540,180,600,240
+Water,540,360,600,420
+Water,600,360,660,420
+Block,780,240,840,300
+Fire,840,300,900,360
+Block,960,300,1020,360