diff options
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -1,3 +1,4 @@ +#include "background.h" #include "conf.h" #include "input.h" #include "level.h" @@ -16,18 +17,16 @@ int main(int argc, char **argv) } level_load(0); + background_init(); while (!LZY_ShouldQuit()) { LZY_CycleEvents(); input_update(); + background_update(); player_update(); LZY_DrawBegin(); - LZY_DrawTileEx(TSET_LINE, 0, 0, 13, 7); - LZY_DrawTileEx(TSET_LINE, DISPLAY_WIDTH / 2, 0, 13, 7); - LZY_DrawTileEx(TSET_LINE, 0, DISPLAY_HEIGHT / 2, 13, 7); - LZY_DrawTileEx(TSET_LINE, DISPLAY_WIDTH / 2, DISPLAY_HEIGHT / 2, - 13, 7); + background_draw(); level_draw(); player_draw(); LZY_DrawEnd(); |