Merge pull request #39 from IngCenter/DarkCat09-patch-1

Add files via upload
This commit is contained in:
Mikhail Abramov 2019-12-13 16:05:38 +04:00 committed by GitHub
commit 5ad7a3876c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
16 changed files with 93 additions and 14 deletions

19
help/css/style.css Normal file
View 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;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 56 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

View file

@ -2,7 +2,7 @@
<head>
<meta charset = "UTF-8" />
<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" />
</head>
<body>
@ -54,7 +54,41 @@
Скриншоты
<div class = "box">
<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>
</p>

View file

@ -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

View file

@ -10,6 +10,7 @@ struct Button {
void drawButton(Button but);
//function for drawing button
void drawButton(Button but)
{
//drawing button

View file

@ -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++) {

View file

@ -1,5 +1,7 @@
#pragma once
//This library containing structure and array for map parts
struct MapPart {
RECT coords;
bool visible;

View file

@ -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;

12
mylvl1.fslvl Normal file
View 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
View 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