Small block game in C
Commit f22835496e26
tarball4 files changed+13-8
@@ -1,3 +1,4 @@
1
+build/12
tetoris23
*.o34
*.d@@ -2,15 +2,17 @@ cmake_minimum_required(VERSION 3.20)
22
33
project(tetoris C)44
5
+set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})6
+57
include(FetchContent)68
79
FetchContent_Declare(8
- jag_parser10
+ jag_parse911
GIT_REPOSITORY https://codeberg.org/Jaglekon/jag_parse.git10
- GIT_TAG v1.0.012
+ GIT_TAG v1.0.21113
)1214
13
-FetchContent_MakeAvailable(parser)15
+FetchContent_MakeAvailable(jag_parse)1416
1517
add_executable(tetoris1618
source/main.c@@ -18,7 +20,7 @@ add_executable(tetoris
1820
source/logic.c1921
)2022
21
-target_link_libraries(tetoris PRIVATE parser)23
+target_link_libraries(tetoris PRIVATE jag_parse)2224
2325
target_compile_options(tetoris PRIVATE2426
$<$<CONFIG:Debug>:-Wall -Wextra -Wpedantic>@@ -2,11 +2,13 @@
22
33
all:44
cmake -B build -DCMAKE_BUILD_TYPE=Release5
- cmake -build build5
+ cmake --build build66
77
debug:88
cmake -B build -DCMAKE_BUILD_TYPE=Debug9
- cmake -build build9
+ cmake --build build10
+11
+new: clean debug1012
1113
clean:12
- rm -rf build14
+ rm -rf build tetoris@@ -1,5 +1,5 @@
11
#include "main.h"2
-#include <parser.h>2
+#include <jag_parse.h>33
44
55
tetromino playfield[FULL_HEIGHT][FULL_WIDTH] = {};