jag

tetoris_c

public

Small block game in C

Star0
Watch0

Commit f22835496e26

tarball

Jaglekon <58274093+Jaglekon@users.noreply.github.com>2026-08-26 17:04 UTC

4 files changed+13-8
ffs
Modified file: .gitignore+1 additions
@@ -1,3 +1,4 @@
1+build/
12 tetoris
23 *.o
34 *.d
Modified file: CMakeLists.txt+6 additions−4 deletions
@@ -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_parser
10+ jag_parse
911 GIT_REPOSITORY https://codeberg.org/Jaglekon/jag_parse.git
10- GIT_TAG v1.0.0
12+ GIT_TAG v1.0.2
1113 )
1214
13-FetchContent_MakeAvailable(parser)
15+FetchContent_MakeAvailable(jag_parse)
1416
1517 add_executable(tetoris
1618 source/main.c
@@ -18,7 +20,7 @@ add_executable(tetoris
1820 source/logic.c
1921 )
2022
21-target_link_libraries(tetoris PRIVATE parser)
23+target_link_libraries(tetoris PRIVATE jag_parse)
2224
2325 target_compile_options(tetoris PRIVATE
2426 $<$<CONFIG:Debug>:-Wall -Wextra -Wpedantic>
Modified file: Makefile+5 additions−3 deletions
@@ -2,11 +2,13 @@
22
33 all:
44 cmake -B build -DCMAKE_BUILD_TYPE=Release
5- cmake -build build
5+ cmake --build build
66
77 debug:
88 cmake -B build -DCMAKE_BUILD_TYPE=Debug
9- cmake -build build
9+ cmake --build build
10+
11+new: clean debug
1012
1113 clean:
12- rm -rf build
14+ rm -rf build tetoris
Modified file: source/main.c+1 additions−1 deletions
@@ -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] = {};