Merge pull request #39 from IngCenter/DarkCat09-patch-1
Add files via upload
19
help/css/style.css
Normal file
|
@ -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;
|
||||||
|
}
|
BIN
help/img/fallsimulation-editor.png
Normal file
After Width: | Height: | Size: 56 KiB |
BIN
help/img/fallsimulation-loading.png
Normal file
After Width: | Height: | Size: 7.3 KiB |
BIN
help/img/fallsimulation-mainmenu.png
Normal file
After Width: | Height: | Size: 11 KiB |
BIN
help/img/fallsimulation-playlose.png
Normal file
After Width: | Height: | Size: 30 KiB |
BIN
help/img/fallsimulation-playmode.png
Normal file
After Width: | Height: | Size: 26 KiB |
BIN
help/img/fallsimulation-playwin.png
Normal file
After Width: | Height: | Size: 30 KiB |
BIN
help/img/fallsimulation-savedialog.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
|
@ -2,7 +2,7 @@
|
||||||
<head>
|
<head>
|
||||||
<meta charset = "UTF-8" />
|
<meta charset = "UTF-8" />
|
||||||
<title>Help HTML File</title>
|
<title>Help HTML File</title>
|
||||||
<link rel = "stylesheet" href = "style.css" />
|
<link rel = "stylesheet" href = "css/style.css" />
|
||||||
<link rel = "shortcut icon" href = "icon/help.png" />
|
<link rel = "shortcut icon" href = "icon/help.png" />
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
@ -54,7 +54,41 @@
|
||||||
Скриншоты
|
Скриншоты
|
||||||
<div class = "box">
|
<div class = "box">
|
||||||
<br />
|
<br />
|
||||||
Текст сообщения в спойлере
|
<p>
|
||||||
|
<img src = "img/fallsimulation-mainmenu.png" alt = "Ваш браузер не поддерживает картинку" />
|
||||||
|
<br />
|
||||||
|
Главное меню
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
<img src = "img/fallsimulation-loading.png" alt = "Ваш браузер не поддерживает картинку" />
|
||||||
|
<br />
|
||||||
|
Анимация загрузки
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
<img src = "img/fallsimulation-editor.png" alt = "Ваш браузер не поддерживает картинку" />
|
||||||
|
<br />
|
||||||
|
Создание уровня
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
<img src = "img/fallsimulation-savedialog.png" alt = "Ваш браузер не поддерживает картинку" />
|
||||||
|
<br />
|
||||||
|
Файл сохранён!
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
<img src = "img/fallsimulation-playmode.png" alt = "Ваш браузер не поддерживает картинку" />
|
||||||
|
<br />
|
||||||
|
Играем на своём уровне
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
<img src = "img/fallsimulation-playwin.png" alt = "Ваш браузер не поддерживает картинку" />
|
||||||
|
<br />
|
||||||
|
Вы победили!
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
<img src = "img/fallsimulation-playlose.png" alt = "Ваш браузер не поддерживает картинку" />
|
||||||
|
<br />
|
||||||
|
Вы проиграли...
|
||||||
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</p>
|
</p>
|
||||||
|
|
18
level1.fslvl
|
@ -1,12 +1,6 @@
|
||||||
Block,120,420,180,480
|
Block,120,360,180,420
|
||||||
Block,300,360,360,420
|
Block,300,240,360,300
|
||||||
Quest,420,360,480,420
|
Quest,480,240,540,300
|
||||||
Block,600,300,660,360
|
Block,720,300,780,360
|
||||||
Block,720,360,780,420
|
Fire,900,360,960,420
|
||||||
Block,900,360,960,420
|
Block,1020,360,1080,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
|
|
||||||
|
|
|
@ -10,6 +10,7 @@ struct Button {
|
||||||
|
|
||||||
void drawButton(Button but);
|
void drawButton(Button but);
|
||||||
|
|
||||||
|
//function for drawing button
|
||||||
void drawButton(Button but)
|
void drawButton(Button but)
|
||||||
{
|
{
|
||||||
//drawing button
|
//drawing button
|
||||||
|
|
|
@ -18,6 +18,7 @@ bool addingBlock(bool clicked, RECT blockBut, HDC pic,
|
||||||
int readFile(string file, MapPart gettedMapParts[]);
|
int readFile(string file, MapPart gettedMapParts[]);
|
||||||
void checkElem(MapPart mapParts[]);
|
void checkElem(MapPart mapParts[]);
|
||||||
|
|
||||||
|
//function for adding block (in editor)
|
||||||
bool addingBlock(bool clicked, RECT blockBut, HDC pic,
|
bool addingBlock(bool clicked, RECT blockBut, HDC pic,
|
||||||
int blocktype, int* arrElem, MapPart mapParts[])
|
int blocktype, int* arrElem, MapPart mapParts[])
|
||||||
{
|
{
|
||||||
|
@ -69,6 +70,7 @@ bool addingBlock(bool clicked, RECT blockBut, HDC pic,
|
||||||
return clicked;
|
return clicked;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//reading parameters for blocks (in play mode)
|
||||||
int readFile(string file, MapPart gettedMapParts[])
|
int readFile(string file, MapPart gettedMapParts[])
|
||||||
{
|
{
|
||||||
for (int i = 0; i < MAP_LENGHT; i++) {
|
for (int i = 0; i < MAP_LENGHT; i++) {
|
||||||
|
@ -134,6 +136,7 @@ int readFile(string file, MapPart gettedMapParts[])
|
||||||
return arrElem;
|
return arrElem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//checking for elements with the same coordinates
|
||||||
void checkElem(MapPart mapParts[])
|
void checkElem(MapPart mapParts[])
|
||||||
{
|
{
|
||||||
for (int elem = 0; elem < MAP_LENGHT; elem++) {
|
for (int elem = 0; elem < MAP_LENGHT; elem++) {
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
//This library containing structure and array for map parts
|
||||||
|
|
||||||
struct MapPart {
|
struct MapPart {
|
||||||
RECT coords;
|
RECT coords;
|
||||||
bool visible;
|
bool visible;
|
||||||
|
|
|
@ -17,6 +17,7 @@ void loadingAnimation(int delay, int speed);
|
||||||
void mainFunc();
|
void mainFunc();
|
||||||
void playGame(MapPart gettedMapParts[]);
|
void playGame(MapPart gettedMapParts[]);
|
||||||
|
|
||||||
|
//function for drawing menu and handling clicks in main menu
|
||||||
void drawMenu()
|
void drawMenu()
|
||||||
{
|
{
|
||||||
//button "Start" (to start level creating)
|
//button "Start" (to start level creating)
|
||||||
|
@ -127,12 +128,14 @@ void drawMenu()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//function for clear background
|
||||||
void background(COLORREF color)
|
void background(COLORREF color)
|
||||||
{
|
{
|
||||||
txSetFillColor(color);
|
txSetFillColor(color);
|
||||||
txClear();
|
txClear();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//loading animation
|
||||||
void loadingAnimation(int delay, int speed)
|
void loadingAnimation(int delay, int speed)
|
||||||
{
|
{
|
||||||
background(TX_WHITE);
|
background(TX_WHITE);
|
||||||
|
@ -154,6 +157,7 @@ void loadingAnimation(int delay, int speed)
|
||||||
background(TX_WHITE);
|
background(TX_WHITE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//main editor function
|
||||||
void mainFunc()
|
void mainFunc()
|
||||||
{
|
{
|
||||||
int selectedPict = -1;
|
int selectedPict = -1;
|
||||||
|
@ -363,6 +367,7 @@ void mainFunc()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//main play mode function
|
||||||
void playGame(MapPart gettedMapParts[])
|
void playGame(MapPart gettedMapParts[])
|
||||||
{
|
{
|
||||||
int minX = gettedMapParts[0].coords.left;
|
int minX = gettedMapParts[0].coords.left;
|
||||||
|
|
12
mylvl1.fslvl
Normal file
|
@ -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
|
9
mylvl2.fslvl
Normal file
|
@ -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
|