-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from Grave18/experemental
Experemental
- Loading branch information
Showing
18 changed files
with
374 additions
and
163 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Tetris | ||
Игра Тетрис, сделанная с помощью RayLib 3.8 | ||
|
||
Для работы программы вам понадобится библиотека raylib.dll, которая должна находиться рядом с Tetris.exe | ||
Для сборки программы вам понадобится набор заголовочных файлов и скомпилированных библиотек из этого репозитория: | ||
https://github.com/raysan5/raylib |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
#pragma once | ||
|
||
// Перечисление всех возможных фигур | ||
// Перечисление всех возможных фигур | ||
enum class FigureEnum | ||
{ | ||
O, I, S, Z, L, J, T | ||
O, I, S, Z, L, J, T, MAX_ELEMENT | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
#include "figures.h" | ||
|
||
Figure Figures::o{ std::vector<Rec>{ { 0, 0 }, { 0, 1 }, { 1, 0 }, { 1, 1 } }, YELLOW }; | ||
Figure Figures::i{ std::vector<Rec>{ { 0, 0 }, { 0, 1 }, { 0, 2 }, { 0, 3 } }, SKYBLUE }; | ||
Figure Figures::s{ std::vector<Rec>{ { 0, 1 }, { 1, 0 }, { 1, 1 }, { 2, 0 } }, RED }; | ||
Figure Figures::z{ std::vector<Rec>{ { 0, 0 }, { 1, 0 }, { 1, 1 }, { 2, 1 } }, GREEN }; | ||
Figure Figures::l{ std::vector<Rec>{ { 0, 0 }, { 0, 1 }, { 0, 2 }, { 1, 2 } }, ORANGE }; | ||
Figure Figures::j{ std::vector<Rec>{ { 0, 2 }, { 1, 0 }, { 1, 1 }, { 1, 2 } }, PINK }; | ||
Figure Figures::t{ std::vector<Rec>{ { 0, 0 }, { 1, 0 }, { 2, 0}, { 1, 1 } }, PURPLE }; | ||
Figure Figures::o{ std::vector<Rec>{ { 0, 0 }, { 0, 1 }, { 1, 0 }, { 1, 1 } }, FigureEnum::O, YELLOW }; | ||
Figure Figures::i{ std::vector<Rec>{ { 0,-2 }, { 0,-1 }, { 0, 0 }, { 0, 1 } }, FigureEnum::I, SKYBLUE }; | ||
Figure Figures::s{ std::vector<Rec>{ {-1, 0 }, { 0,-1 }, { 0, 0 }, { 1,-1 } }, FigureEnum::S, RED }; | ||
Figure Figures::z{ std::vector<Rec>{ {-1,-1 }, { 0,-1 }, { 0, 0 }, { 1, 0 } }, FigureEnum::Z, GREEN }; | ||
Figure Figures::l{ std::vector<Rec>{ { 0,-1 }, { 0, 0 }, { 0, 1 }, { 1, 1 } }, FigureEnum::L, ORANGE }; | ||
Figure Figures::j{ std::vector<Rec>{ {-1, 1 }, { 0,-1 }, { 0, 0 }, { 0, 1 } }, FigureEnum::J, PINK }; | ||
Figure Figures::t{ std::vector<Rec>{ {-1, 0 }, { 0,-1 }, { 0, 0 }, { 1, 0 } }, FigureEnum::T, PURPLE }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.