#include "conf.h" #include "input.h" #include "level.h" #include "lzy.h" #include "player.h" static void deinit(void); int main(int argc, char **argv) { if (LZY_Init(argc, (const char **)argv, "wehfou official goty", 30, "res/tset.png", "res/font.png")) { LZY_Log(LZY_GetError()); deinit(); return 1; } level_load(0); player_init(0, 0); while (!LZY_ShouldQuit()) { LZY_CycleEvents(); input_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); player_draw(); LZY_DrawEnd(); } deinit(); return 0; } static void deinit(void) { level_deinit(); LZY_Quit(); }