You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//#define DEBUG_CONSOLE // Uncomment this if you want a debug console to start. You can use the Console class to print. You can use Console::inStrings to get input.
#include <4dm.h>
using namespace fdm;
// Initialize the DLLMain
initDLL
$hook(void, StateGame, init, StateManager& s)
{
// Your code that runs at first frame here (it calls when you load into the world)
// Your code that runs every frame here (it only calls when you play in world, because its Player's function)
original(self, world, dt, entityPlayer);
}
$hook(bool, Player, keyInput, GLFWwindow* window, World* world, int key, int scancode, int action, int mods)
{
// Your code that runs when Key Input happens (check GLFW Keyboard Input tutorials)|(it only calls when you play in world, because it is a Player function)