summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/main.c b/src/main.c
index b5ef9d7..3285796 100644
--- a/src/main.c
+++ b/src/main.c
@@ -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();