コード例 #1
0
ファイル: engine.cpp プロジェクト: arctic5/Coverguard
Engine::Engine()
{
    lasttimeupdated = getmillisec();
    millisecperframe = 1000.0 / PHYSICS_FPS;
    currentstate = Gamestate();
}
コード例 #2
0
ファイル: Game.cpp プロジェクト: awinslow/Awesome-Game
 Gamestate & Game::get_console_instance() {
   static Gamestate console_state(Gamestate(new Console_State()));
   return console_state;
 }