diff options
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 13 |
1 files changed, 6 insertions, 7 deletions
@@ -1,5 +1,6 @@ #include "TZR.h" #include "font.h" +#include "dialog.h" static int init(void); static void deinit(void); @@ -19,18 +20,16 @@ int main(int argc, char **argv) return 1; } + dialog_set("yo Rboi\nByou WcoolR!"); + while (!TZR_ShouldQuit()) { TZR_CycleEvents(); + dialog_update(); TZR_DrawBegin(); TZR_DrawSetColor(0, 0, 0, 1); TZR_DrawClear(); - TZR_DrawSetColor(1, 1, 1); - font_draw(2, 3, "coucou"); - TZR_DrawSetColor(1, 0, 1); - font_draw(3, 4, "69"); - TZR_DrawSetColor(0, 0, 1); - font_draw(4, 5, "( n i c e )"); + dialog_draw(); TZR_DrawEnd(); } return 0; @@ -38,7 +37,7 @@ int main(int argc, char **argv) static int init(void) { - if (TZR_Init(.target_fps=30, .pixel_perfect=false, .title="7DRL 2023")) + if (TZR_Init(.pixel_perfect=false, .title="7DRL 2023")) return 1; if (font_init("res/font.png")) return 1; |