mirror of https://git.sr.ht/~kikoodx/crystal-tower
glow up
This commit is contained in:
parent
5a83818ff6
commit
4664a7c096
|
@ -33,6 +33,7 @@ set(LEVELS
|
|||
lvl/4.kble
|
||||
lvl/5.kble
|
||||
lvl/6.kble
|
||||
lvl/7.kble
|
||||
lvl/end.kble
|
||||
)
|
||||
|
||||
|
@ -61,6 +62,6 @@ target_link_options(target PRIVATE -Wl,-Map=map)
|
|||
|
||||
generate_g3a(TARGET target
|
||||
OUTPUT "${PROJECT_NAME}.g3a"
|
||||
NAME "${PROJECT_NAME}"
|
||||
NAME ""
|
||||
ICONS res/icon-uns.png res/icon-sel.png
|
||||
)
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
#define STARS_MIN_X 0
|
||||
#define STARS_MAX_X (DWIDTH - STARS_SIZE)
|
||||
#define STARS_COLOR C_RGB(31, 31, 31)
|
||||
#define STARS_BASE_SPEED 1.0
|
||||
#define STARS_MAX_SPEED 3.0
|
||||
#define STARS_BASE_SPEED 2.0f
|
||||
#define STARS_MAX_SPEED 6.0f
|
||||
#define STARS_SPEED_VARIATION (STARS_MAX_SPEED - STARS_BASE_SPEED)
|
||||
#define STARS_STRETCH 2.0
|
||||
#define STARS_STRETCH 2.0f
|
||||
|
|
BIN
lvl/6.kble
BIN
lvl/6.kble
Binary file not shown.
Binary file not shown.
BIN
lvl/end.kble
BIN
lvl/end.kble
Binary file not shown.
BIN
res/icon-sel.png
BIN
res/icon-sel.png
Binary file not shown.
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 14 KiB |
BIN
res/icon-uns.png
BIN
res/icon-uns.png
Binary file not shown.
Before Width: | Height: | Size: 8.3 KiB After Width: | Height: | Size: 13 KiB |
|
@ -9,9 +9,11 @@
|
|||
#include <stdlib.h>
|
||||
|
||||
static struct Level self;
|
||||
extern struct LevelBin lvl_0, lvl_1, lvl_2, lvl_3, lvl_4, lvl_5, lvl_6, lvl_end;
|
||||
static const struct LevelBin *levels[] = {
|
||||
&lvl_0, &lvl_1, &lvl_2, &lvl_3, &lvl_4, &lvl_5, &lvl_6, &lvl_end, NULL};
|
||||
extern struct LevelBin lvl_0, lvl_1, lvl_2, lvl_3, lvl_4, lvl_5, lvl_6, lvl_7,
|
||||
lvl_end;
|
||||
static const struct LevelBin *levels[] = {&lvl_0, &lvl_1, &lvl_2, &lvl_3,
|
||||
&lvl_4, &lvl_5, &lvl_6, &lvl_7,
|
||||
&lvl_end, NULL};
|
||||
|
||||
void
|
||||
level_load(int id)
|
||||
|
|
|
@ -20,7 +20,7 @@ results_draw(void)
|
|||
}
|
||||
drect(DWIDTH / 4, 24, DWIDTH * 3 / 4, 120, C_BLACK);
|
||||
dprint_opt(DWIDTH / 2, 56, C_WHITE, C_BLACK, DTEXT_CENTER, DTEXT_MIDDLE,
|
||||
"time %02d:%02d", disp_time / 3600, disp_time / 60);
|
||||
"time %02d:%02d", disp_time / 3600, disp_time / 60 % 60);
|
||||
dprint_opt(DWIDTH / 2, 88, C_WHITE, C_BLACK, DTEXT_CENTER, DTEXT_MIDDLE,
|
||||
"%d deaths", disp_deaths);
|
||||
"%d death%s", disp_deaths, (disp_deaths > 1) ? "s" : "");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue