2023-12-20 00:07:54 -05:00
|
|
|
#include "game.h"
|
2023-12-21 13:03:16 -05:00
|
|
|
#include "render.h"
|
2023-12-20 00:07:54 -05:00
|
|
|
#include "engine.h"
|
2023-12-19 20:58:08 -05:00
|
|
|
|
2023-12-23 10:53:45 -05:00
|
|
|
#include <raylib.h>
|
2023-12-22 02:09:39 -05:00
|
|
|
|
2023-12-19 20:58:08 -05:00
|
|
|
int main (void) {
|
2023-12-30 06:33:33 -05:00
|
|
|
game_configure ();
|
2023-12-21 13:03:16 -05:00
|
|
|
render_configure ();
|
2023-12-30 06:33:33 -05:00
|
|
|
engine_configure ();
|
2023-12-19 20:58:08 -05:00
|
|
|
|
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-19 20:58:08 -05:00
|
|
|
|
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);
|
2023-12-19 20:58:08 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
return (0);
|
|
|
|
}
|