Last active
February 3, 2020 15:57
-
-
Save andraantariksa/3c9c403257957a585b832c8a495151cd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[workspace] | |
name = "MyGame" | |
[workspace.assetmanager] | |
installmode = "local" | |
required = [ | |
"shaderboi.coolshaders", | |
"shaderboi.coolshadersv2" | |
] | |
[[workspace.projects]] | |
name = "MyGame" | |
type = "GameProject" | |
srcfiles = [ | |
"MyGame/*.cpp", | |
"MyGame/*.hpp" | |
] | |
target = [ "android", "pc-win32", "ps4", "xbox1" ] | |
[[workspace.projects]] | |
name = "MyGame2" | |
type = "GameProject" | |
srcfiles = [ | |
"MyGame2/*.cpp", | |
"MyGame2/*.hpp" | |
] | |
target = [ "pc-win32" ] | |
[author] | |
name = "Some corps" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Hx/Hx.hpp> | |
int main() | |
{ | |
gameData = Hx::GameDataBuilder::Default() | |
.With() | |
.Build(); | |
game = Hx::Game::Create() | |
.WithFrameLimit( | |
FrameLimitStrategy::SleepAndYield(2) | |
) | |
.Guild(game); | |
game.run(); // Run the game main loop | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment