mirror of
https://gitlab.com/dosowisko.net/libsuperderpy.git
synced 2025-02-08 06:06:43 +01:00
link to release version of allegro
This commit is contained in:
parent
185ac75bbe
commit
8e2e55e416
2 changed files with 4 additions and 4 deletions
2
Makefile
2
Makefile
|
@ -4,7 +4,7 @@ CFLAGS=-I$(IDIR) -Wall -g
|
||||||
|
|
||||||
SRCDIR=src
|
SRCDIR=src
|
||||||
ODIR=obj
|
ODIR=obj
|
||||||
LIBS=-lallegro-debug -lallegro_audio-debug -lallegro_acodec-debug -lallegro_image-debug -lallegro_font-debug -lallegro_ttf-debug -lm
|
LIBS=-lallegro -lallegro_audio -lallegro_acodec -lallegro_image -lallegro_font -lallegro_ttf -lm
|
||||||
|
|
||||||
_OBJ = config.o main.o about.o intro.o loading.o map.o menu.o level.o pause.o
|
_OBJ = config.o main.o about.o intro.o loading.o map.o menu.o level.o pause.o
|
||||||
OBJ = $(patsubst %,$(ODIR)/%,$(_OBJ))
|
OBJ = $(patsubst %,$(ODIR)/%,$(_OBJ))
|
||||||
|
|
|
@ -54,6 +54,9 @@ void Level_Draw(struct Game *game) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void Level_Load(struct Game *game) {
|
void Level_Load(struct Game *game) {
|
||||||
|
game->level.derpy_frame = 0;
|
||||||
|
game->level.derpy_frame_tmp = 0;
|
||||||
|
game->level.derpy_pos = -0.2;
|
||||||
al_play_sample_instance(game->level.music);
|
al_play_sample_instance(game->level.music);
|
||||||
ALLEGRO_EVENT ev;
|
ALLEGRO_EVENT ev;
|
||||||
int fadeloop;
|
int fadeloop;
|
||||||
|
@ -79,9 +82,6 @@ int Level_Keydown(struct Game *game, ALLEGRO_EVENT *ev) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void Level_Preload(struct Game *game) {
|
void Level_Preload(struct Game *game) {
|
||||||
game->level.derpy_frame = 0;
|
|
||||||
game->level.derpy_frame_tmp = 0;
|
|
||||||
game->level.derpy_pos = -0.2;
|
|
||||||
PrintConsole(game, "Initializing level %d...", game->level.current_level);
|
PrintConsole(game, "Initializing level %d...", game->level.current_level);
|
||||||
game->level.image =LoadScaledBitmap("table.png", al_get_display_width(game->display), al_get_display_height(game->display));
|
game->level.image =LoadScaledBitmap("table.png", al_get_display_width(game->display), al_get_display_height(game->display));
|
||||||
game->level.sample = al_load_sample( "data/moonwalk.flac" );
|
game->level.sample = al_load_sample( "data/moonwalk.flac" );
|
||||||
|
|
Loading…
Reference in a new issue