This commit is contained in:
Love 2024-08-04 15:11:11 +02:00
parent d99633e7cf
commit c609d5ccb0
19 changed files with 33338 additions and 0 deletions

View File

@ -11,6 +11,10 @@ find_package(SDL2 CONFIG REQUIRED)
find_package(SDL2_ttf CONFIG REQUIRED) find_package(SDL2_ttf CONFIG REQUIRED)
find_package(CURL REQUIRED) find_package(CURL REQUIRED)
file(GLOB KULLE_SRC src/data/kulle_*_png.cpp)
file(GLOB KULLE_HEADER src/data/kulle_*_png.hpp)
add_executable(hang_man src/main.cpp add_executable(hang_man src/main.cpp
src/Game.cpp src/Game.cpp
src/Game.hpp src/Game.hpp
@ -22,6 +26,10 @@ add_executable(hang_man src/main.cpp
src/GuessCorrector.hpp src/GuessCorrector.hpp
src/default_font.cpp src/default_font.cpp
src/default_font.hpp src/default_font.hpp
${KULLE_SRC}
${KULLE_HEADER}
src/data/hills.cpp
src/data/hills.hpp
) )
target_link_libraries(hang_man PRIVATE target_link_libraries(hang_man PRIVATE

21
src/data/hills.cpp Normal file
View File

@ -0,0 +1,21 @@
#include "hills.hpp"
#include "kulle_0_png.hpp"
#include "kulle_1_png.hpp"
#include "kulle_2_png.hpp"
#include "kulle_3_png.hpp"
#include "kulle_4_png.hpp"
#include "kulle_5_png.hpp"
#include "kulle_6_png.hpp"
#include "kulle_7_png.hpp"
unsigned const char *hills[] = {
kulle_0_png,
kulle_1_png,
kulle_2_png,
kulle_3_png,
kulle_4_png,
kulle_5_png,
kulle_6_png,
kulle_7_png,
};

3
src/data/hills.hpp Normal file
View File

@ -0,0 +1,3 @@
#pragma once
extern unsigned const char *hills[];

4024
src/data/kulle_0_png.cpp Normal file

File diff suppressed because it is too large Load Diff

6
src/data/kulle_0_png.hpp Normal file
View File

@ -0,0 +1,6 @@
#pragma once
#include <cstddef>
extern const unsigned char kulle_0_png[];
extern const size_t kulle_0_png_length;

3976
src/data/kulle_1_png.cpp Normal file

File diff suppressed because it is too large Load Diff

6
src/data/kulle_1_png.hpp Normal file
View File

@ -0,0 +1,6 @@
#pragma once
#include <cstddef>
extern const unsigned char kulle_1_png[];
extern const size_t kulle_1_png_length;

4123
src/data/kulle_2_png.cpp Normal file

File diff suppressed because it is too large Load Diff

6
src/data/kulle_2_png.hpp Normal file
View File

@ -0,0 +1,6 @@
#pragma once
#include <cstddef>
extern const unsigned char kulle_2_png[];
extern const size_t kulle_2_png_length;

4166
src/data/kulle_3_png.cpp Normal file

File diff suppressed because it is too large Load Diff

6
src/data/kulle_3_png.hpp Normal file
View File

@ -0,0 +1,6 @@
#pragma once
#include <cstddef>
extern const unsigned char kulle_3_png[];
extern const size_t kulle_3_png_length;

4192
src/data/kulle_4_png.cpp Normal file

File diff suppressed because it is too large Load Diff

6
src/data/kulle_4_png.hpp Normal file
View File

@ -0,0 +1,6 @@
#pragma once
#include <cstddef>
extern const unsigned char kulle_4_png[];
extern const size_t kulle_4_png_length;

4219
src/data/kulle_5_png.cpp Normal file

File diff suppressed because it is too large Load Diff

6
src/data/kulle_5_png.hpp Normal file
View File

@ -0,0 +1,6 @@
#pragma once
#include <cstddef>
extern const unsigned char kulle_5_png[];
extern const size_t kulle_5_png_length;

4260
src/data/kulle_6_png.cpp Normal file

File diff suppressed because it is too large Load Diff

6
src/data/kulle_6_png.hpp Normal file
View File

@ -0,0 +1,6 @@
#pragma once
#include <cstddef>
extern const unsigned char kulle_6_png[];
extern const size_t kulle_6_png_length;

4298
src/data/kulle_7_png.cpp Normal file

File diff suppressed because it is too large Load Diff

6
src/data/kulle_7_png.hpp Normal file
View File

@ -0,0 +1,6 @@
#pragma once
#include <cstddef>
extern const unsigned char kulle_7_png[];
extern const size_t kulle_7_png_length;