diff --git a/src/corelib/entry.c b/src/corelib/entry.c index a1c857f..4489250 100644 --- a/src/corelib/entry.c +++ b/src/corelib/entry.c @@ -1,8 +1,9 @@ -#include "engine.h" +#include "entry.h" #include "world.h" -#include "corelib/assets.h" -#include "corelib/render.h" -#include "corelib/input.h" +#include "assets.h" +#include "render.h" +#include "input.h" + #include "time.h" static double _delta_time = 0; diff --git a/src/corelib/entry.h b/src/corelib/entry.h index 8667836..db8843a 100644 --- a/src/corelib/entry.h +++ b/src/corelib/entry.h @@ -1,10 +1,6 @@ #ifndef _engine_h #define _engine_h -#ifdef __cplusplus -extern "C" { -#endif - extern float delta_time(); extern void set_frame_interval(double frame_interval); extern void set_frame_rate_limit(int fps); @@ -16,8 +12,4 @@ extern void update_game(); extern void update_ui(); extern void game_exit(); -#ifdef __cplusplus -} -#endif - #endif /* _engine_h */ diff --git a/src/game.c b/src/game.c index 81b040f..37f1f8e 100644 --- a/src/game.c +++ b/src/game.c @@ -1,5 +1,5 @@ -#include "engine.h" -#include "world.h" +#include "corelib/entry.h" +#include "corelib/world.h" #include "corelib/input.h" #include "corelib/render.h" #include "corelib/assets.h"