mirror of
https://gitlab.com/dosowisko.net/libsuperderpy.git
synced 2025-02-01 11:06:44 +01:00
better moonwalk synchronization :D
This commit is contained in:
parent
cb33ac763d
commit
4b8bd024d7
2 changed files with 1 additions and 7 deletions
|
@ -42,6 +42,7 @@ void Level_Draw(struct Game *game) {
|
|||
game->level.derpy_frame_tmp++;
|
||||
if (game->level.derpy_frame_tmp%3==0) {
|
||||
if (game->level.derpy_frame_tmp%5==0) game->level.derpy_frame++;
|
||||
if (game->level.derpy_frame_tmp%22==21) game->level.derpy_frame--;
|
||||
game->level.derpy_frame++;
|
||||
if (game->level.derpy_frame>=24) game->level.derpy_frame=0;
|
||||
}
|
||||
|
|
|
@ -104,18 +104,13 @@ void Map_Preload(struct Game *game) {
|
|||
PrintConsole(game, "Last level available: %d", game->map.selected);
|
||||
game->map.arrowpos = 0;
|
||||
|
||||
PrintConsole(game, "Loading background...");
|
||||
game->map.map_bg = LoadScaledBitmap("map/background.png", al_get_display_width(game->display), al_get_display_height(game->display));
|
||||
PrintConsole(game, "Setting up highlight...");
|
||||
char filename[30] = { };
|
||||
sprintf(filename, "map/highlight%d.png", game->map.available);
|
||||
PrintConsole(game, "Loading highlight...");
|
||||
game->map.highlight = LoadScaledBitmap(filename, al_get_display_width(game->display), al_get_display_height(game->display));
|
||||
PrintConsole(game, "Loading arrow...");
|
||||
|
||||
game->map.arrow = al_load_bitmap( "data/arrow.png" );
|
||||
|
||||
PrintConsole(game, "Loading samples...");
|
||||
game->map.click_sample = al_load_sample( "data/click.flac" );
|
||||
game->map.sample = al_load_sample( "data/map.flac" );
|
||||
|
||||
|
@ -128,9 +123,7 @@ void Map_Preload(struct Game *game) {
|
|||
exit(-1);
|
||||
}
|
||||
|
||||
PrintConsole(game, "Loading table...");
|
||||
game->map.map = LoadScaledBitmap("table.png", al_get_display_width(game->display), al_get_display_height(game->display));
|
||||
PrintConsole(game, "Drawing...");
|
||||
al_set_target_bitmap(game->map.map);
|
||||
al_draw_bitmap(game->map.map_bg, 0, 0 ,0);
|
||||
al_draw_bitmap(game->map.highlight, 0, 0 ,0);
|
||||
|
|
Loading…
Reference in a new issue