umorna/source/main.c

32 lines
697 B
C
Raw Normal View History

#include "game.h"
#include "render.h"
#include "engine.h"
2023-12-23 10:53:45 -05:00
#include <raylib.h>
2023-12-22 02:09:39 -05:00
int main (void) {
2023-12-30 06:33:33 -05:00
game_configure ();
render_configure ();
2023-12-30 06:33:33 -05:00
engine_configure ();
2023-12-30 03:23:42 -05:00
while (render_active != 0) {
2023-12-30 06:33:33 -05:00
engine_synchronize ();
2023-12-30 03:23:42 -05:00
render_synchronize ();
2023-12-22 02:09:39 -05:00
view_map (camera_x, camera_y);
2023-12-29 07:14:30 -05:00
view_map_overlay ();
view_hud (render_width () - SIDE_SIZE, 0, SIDE_SIZE, render_height (), 0, 0);
view_hud (0, 0, render_width () - SIDE_SIZE, render_height (), 0, 1);
view_menu (menu_resources, 96, 96, 1, 0, 1);
view_menu (menu_traits, 0, 0, 1, 1, 0);
view_menu (menu_skills, 0, 0, 0, 0, 0);
view_menu (menu_values, 96, 240, 0, 0, 0);
}
return (0);
}