This commit is contained in:
kdx 2023-09-24 12:15:34 +02:00
parent 3e8e99394c
commit 01258f1432
5 changed files with 24 additions and 5 deletions

7
buildwin.sh Executable file
View File

@ -0,0 +1,7 @@
#!/bin/sh
x86_64-w64-mingw32-gcc \
-O3 -s \
-o hyperultra.exe -Dmain=SDL_main \
-Imap src/*.c \
-lmingw32 -lSDL2main -lSDL2 -lSDL2_image -lSDL2_mixer -mwindows \
|| exit 1

View File

@ -470,7 +470,7 @@ const char *LZY_GetError(void) {
static const SDL_Scancode sc[LZYK_COUNT * 2] = {
SDL_SCANCODE_LEFT, SDL_SCANCODE_A, SDL_SCANCODE_RIGHT, SDL_SCANCODE_D,
SDL_SCANCODE_UP, SDL_SCANCODE_W, SDL_SCANCODE_DOWN, SDL_SCANCODE_S,
SDL_SCANCODE_Z, SDL_SCANCODE_J, SDL_SCANCODE_X, SDL_SCANCODE_K,
SDL_SCANCODE_SPACE,SDL_SCANCODE_J, SDL_SCANCODE_X, SDL_SCANCODE_K,
};
static const SDL_Scancode fullscreen_sc = SDL_SCANCODE_F11;
static const char *error = NULL;

View File

@ -64,15 +64,27 @@ main([[maybe_unused]] int argc, [[maybe_unused]] char **argv)
int y = -16;
if (stage == 1) {
(void)LZY_DrawText(48, y += 32, "WALKING is AUTOMATIC");
#ifdef FXCG50
(void)LZY_DrawText(48, y += 32, "press SHIFT to jump");
#else
(void)LZY_DrawText(48, y += 32, "press SPACE to jump");
#endif
(void)LZY_DrawText(48, y += 32, "hold UP to jump HIGHER");
(void)LZY_DrawText(48, y += 32, "hold DOWN to jump LOWER");
} else {
(void)LZY_DrawText(48, y += 32, "HYPERULTRA");
(void)LZY_DrawText(48, y += 32, "a game made by KDX.re");
(void)LZY_DrawText(48, y += 32, "powered by GINT and SDL");
#ifdef FXCG50
(void)LZY_DrawText(48, y += 32, "powered by GINT");
#else
(void)LZY_DrawText(48, y += 32, "powered by SDL");
#endif
}
#ifdef FXCG50
(void)LZY_DrawText(48, y += 48, "hold SHIFT to continue");
#else
(void)LZY_DrawText(48, y += 48, "hold SPACE to continue");
#endif
if (hold)
(void)LZY_FillRect(0, DISPLAY_HEIGHT - 24, hold * 8, 24);
background_draw();

View File

@ -11,7 +11,7 @@ struct {
} maps[] = {
{ &map_nuancierdesaut_tmj, "nuancier de saut" },
{ &map_trailblazer_tmj, "trailblazer" },
{ &map_weallstartsomewhere_tmj, "we all start kekpart" },
{ &map_weallstartsomewhere_tmj, "deceptive routing" },
{ &map_wakywakysnakysnake_tmj, "waky waky snaky snek" },
{ &map_fillerepisode_tmj, "filler episode" },
{ &map_idkwymmdr_tmj, "idk wym mdr" },

View File

@ -57,12 +57,12 @@ IMPL(update) {
this->player.rot_speed = 0.5 * this->player.dirx;
break;
}
} else if (on_ground && input_down(K_X)) {
}/* else if (on_ground && input_down(K_X)) {
extern double tick;
this->vel[0] *= 3;
tick += 2.0;
this->player.scale_x *= 1.05;
}
}*/
entity_move(this, g);
if (this->vel[0] == 0.0 && this->vel[1] >= -0.0)