#include "engine.h" #define STB_DS_IMPLEMENTATION #include #define STB_TRUETYPE_IMPLEMENTATION #include #define STB_IMAGE_IMPLEMENTATION #define STBI_FAILURE_USERMSG #include "stb_image.h" #define STB_IMAGE_WRITE_IMPLEMENTATION #include "stb_image_write.h" #define PL_MPEG_IMPLEMENTATION #include #include "render.h" #include "2dphysics.h" #include "camera.h" #include "gameobject.h" #include "input.h" #include "log.h" #include "openglrender.h" #include "resources.h" #include "script.h" #include "sprite.h" #include "timer.h" #include "window.h" #include "sound.h" #include "engine.h" void error_callback(int error, const char *description) { fprintf(stderr, "Error: %s\n", description); YughError("GLFW Error: %s", description); } void engine_init() { resources_init(); YughInfo("Starting physics ..."); phys2d_init(); YughInfo("Starting sound ..."); sound_init(); YughInfo("Starting scripts ..."); script_init(); }