update readme
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -11,6 +11,7 @@ build/
|
|||||||
# personnal documentation
|
# personnal documentation
|
||||||
doc/*.txt
|
doc/*.txt
|
||||||
doc/*.violet.html
|
doc/*.violet.html
|
||||||
|
doc/mockups/*
|
||||||
|
|
||||||
# pieces files
|
# pieces files
|
||||||
data/pieces/*.bin
|
data/pieces/*.bin
|
||||||
|
|||||||
11
README.md
11
README.md
@@ -1,8 +1,11 @@
|
|||||||
# jminos
|
# jminos
|
||||||
|
|
||||||
|
Modern stacker game with every polyominos from size 1 to 15, made in C++ with [SFML 3](https://www.sfml-dev.org/)!
|
||||||
|
|
||||||
## Manual build and run
|
## Manual build and run
|
||||||
|
|
||||||
You need to install xmake and have a compiler with c++20 compatibility
|
This project uses xmake for compiling.
|
||||||
|
To be able to build it, you need to [install xmake](https://xmake.io) and have a compiler with c++20 compatibility, xmake will install SFML for you.
|
||||||
|
|
||||||
### Build the project
|
### Build the project
|
||||||
|
|
||||||
@@ -15,8 +18,8 @@ If you need to change the toolchain (for example using gcc):
|
|||||||
|
|
||||||
### Run the project
|
### Run the project
|
||||||
|
|
||||||
Graphical version:
|
``xmake run``
|
||||||
``xmake run graph``
|
Note that the program will genereate the polyomino files for you. This can be quite long so it only does it up to size 10.
|
||||||
|
|
||||||
Command line version:
|
If for some reasons you wanna run the command line version:
|
||||||
``xmake run text``
|
``xmake run text``
|
||||||
|
|||||||
@@ -10,7 +10,12 @@
|
|||||||
static const int MAXIMUM_BOARD_WIDTH = 40;
|
static const int MAXIMUM_BOARD_WIDTH = 40;
|
||||||
static const int MAXIMUM_BOARD_HEIGHT = 40;
|
static const int MAXIMUM_BOARD_HEIGHT = 40;
|
||||||
|
|
||||||
|
//#define __JMINOS_RELEASE__
|
||||||
|
#ifdef __JMINOS_RELEASE__
|
||||||
|
static const int MAXIMUM_PIECES_SIZE = 15;
|
||||||
|
#else
|
||||||
static const int MAXIMUM_PIECES_SIZE = 10;
|
static const int MAXIMUM_PIECES_SIZE = 10;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
class Settings {
|
class Settings {
|
||||||
|
|||||||
@@ -12,7 +12,8 @@ void resetKeybindFile(int layout);
|
|||||||
int main() {
|
int main() {
|
||||||
std::srand(std::time(NULL));
|
std::srand(std::time(NULL));
|
||||||
|
|
||||||
// keep only for dev
|
#ifndef __JMINOS_RELEASE__
|
||||||
|
|
||||||
PiecesFiles pf;
|
PiecesFiles pf;
|
||||||
for (int i = 1; i <= MAXIMUM_PIECES_SIZE; i++) {
|
for (int i = 1; i <= MAXIMUM_PIECES_SIZE; i++) {
|
||||||
if (!std::filesystem::exists("data/pieces/" + std::to_string(i) + "minos.bin")) {
|
if (!std::filesystem::exists("data/pieces/" + std::to_string(i) + "minos.bin")) {
|
||||||
@@ -29,8 +30,10 @@ int main() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// before compiling release version
|
// uncomment before compiling release version
|
||||||
resetConfigFiles();
|
//resetConfigFiles();
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
GraphApp UI;
|
GraphApp UI;
|
||||||
UI.run();
|
UI.run();
|
||||||
|
|||||||
Reference in New Issue
Block a user