This commit is contained in:
Love 2024-08-04 15:24:26 +02:00
parent 97d2e1913f
commit 5e728417aa
2 changed files with 15 additions and 10 deletions

View File

@ -9,14 +9,14 @@
#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,
const HillData hills[] = {
{kulle_0_png, kulle_0_png_length},
{kulle_1_png, kulle_1_png_length},
{kulle_2_png, kulle_2_png_length},
{kulle_3_png, kulle_3_png_length},
{kulle_4_png, kulle_4_png_length},
{kulle_5_png, kulle_5_png_length},
{kulle_6_png, kulle_6_png_length},
{kulle_7_png, kulle_7_png_length},
};
extern const size_t hills_length = 8;

View File

@ -1,4 +1,9 @@
#pragma once
extern unsigned const char *hills[];
struct HillData {
unsigned const char *data;
const size_t length;
};
extern const HillData hills[];
extern const size_t hills_length;