Ketchup Engine
|
Now that we've set up our EngineSettings, we can attach it to Ketchup and create our main.cpp entrypoint.
#include "TutorialGameSettings.h" #include "Ketchup.h" int CALLBACK WinMain(HINSTANCE , HINSTANCE , LPSTR , int) { TutorialGameSettings settings; Ketchup::AttachSettings(&settings); Ketchup::Run(); return 0; }
We use Ketchup::AttachSettings() with a pointer to our instance of our settings class as a parameter. Then we can call Ketchup::Run() so that Ketchup will start the game with our newly defined Init, End, and LoadResources methods.