A RPG I'm messing with made in Raylib.
at main 562 B view raw
1#include "../include/config.h" 2#include "../include/player.h" 3#include "../include/raylib.h" 4#include <stdlib.h> 5 6int main() { 7 InitWindow(WINDOW_WIDTH, WINDOW_HEIGHT, "RPG"); 8 SetTargetFPS(60); 9 10 Player *player = player_create(0, 0); 11 12 while (!WindowShouldClose()) { 13 player_update(player); 14 15 BeginDrawing(); 16 17 ClearBackground(WHITE); 18 19 BeginMode2D(player->camera); 20 21 player_draw(player); 22 23 EndMode2D(); 24 25 EndDrawing(); 26 } 27 28 player_destroy(player); 29 CloseWindow(); 30 return EXIT_SUCCESS; 31}