Get started with you first ASGE Game.
{
public:
OGLGame(settings)
{
}
~MyFirstASGEGame() override = default;
MyFirstASGEGame(const MyFirstASGEGame&) = delete;
MyFirstASGEGame& operator=(const MyFirstASGEGame&) = delete;
private:
void keyHandler(ASGE::SharedEventData data)
{
const auto* key_event =
dynamic_cast<const ASGE::KeyEvent*
>(data.get());
auto key = key_event->
key;
auto action = key_event->action;
{
signalExit();
}
}
private:
std::string key_callback_id{};
};
int main()
{
game_settings.window_title = "ASGEGame";
MyFirstASGEGame game(game_settings);
return game.run();
}
Struct ASGE::GameSettings, Enum ASGE::GameSettings::WindowMode, Enum ASGE::GameSettings::MagFilter,...
an OpenGL implementation of the Game engine.
constexpr int KEY_PRESSED
void INFO(const std::string &message)
GameSettings allows you to configure the game window and its initial state upon construction of the g...
Stores both frame and game deltas.