update readme

This commit is contained in:
2025-03-23 16:53:58 +01:00
parent 92b58c4b98
commit 1781b85332
5 changed files with 21 additions and 7 deletions

1
.gitignore vendored
View File

@@ -11,6 +11,7 @@ build/
# personnal documentation
doc/*.txt
doc/*.violet.html
doc/mockups/*
# pieces files
data/pieces/*.bin

View File

@@ -1,8 +1,11 @@
# 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
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
@@ -15,8 +18,8 @@ If you need to change the toolchain (for example using gcc):
### Run the project
Graphical version:
``xmake run graph``
``xmake run``
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``

View File

@@ -10,7 +10,12 @@
static const int MAXIMUM_BOARD_WIDTH = 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;
#endif
class Settings {

View File

@@ -12,7 +12,8 @@ void resetKeybindFile(int layout);
int main() {
std::srand(std::time(NULL));
// keep only for dev
#ifndef __JMINOS_RELEASE__
PiecesFiles pf;
for (int i = 1; i <= MAXIMUM_PIECES_SIZE; i++) {
if (!std::filesystem::exists("data/pieces/" + std::to_string(i) + "minos.bin")) {
@@ -29,8 +30,10 @@ int main() {
}
}
// before compiling release version
resetConfigFiles();
// uncomment before compiling release version
//resetConfigFiles();
#endif
GraphApp UI;
UI.run();

View File

@@ -6,6 +6,8 @@ set_languages("c++20")
set_rundir(".")
set_optimize("fastest")
target("core")
set_kind("$(kind)")
add_files("src/Pieces/*.cpp")