39 lines
1.0 KiB
C++
39 lines
1.0 KiB
C++
/*@~@~@ |C|A|K|E|F|O|O|T| <presented by> 💫dank.game💫
|
|
|~)~)~)
|
|
|\~*~*| Licensed under the zlib and CC-BY licenses. Source is available at
|
|
|\\~*~|
|
|
,~|#\\~*|~, <https://open.shampoo.ooo/shampoo/cakefoot>
|
|
: \\@\\~| :
|
|
: \\#\\| : Created with open SPACE🪐BOX engine for cross-platform, PC, web and mobile games
|
|
: \\@\' :
|
|
: \\/ : <https://open.shampoo.ooo/shampoo/spacebox>
|
|
`~ ~ ~`~ */
|
|
|
|
#include "main.hpp"
|
|
|
|
int main(int argc, char** argv)
|
|
{
|
|
/* Parse the command line */
|
|
try
|
|
{
|
|
sb::init(argc, argv);
|
|
}
|
|
catch (const CLI::ParseError& error)
|
|
{
|
|
return error.get_exit_code();
|
|
}
|
|
|
|
/* Create a default Cakefoot game object. Configuration overrides are handled by the framework's automatic
|
|
* configuration lookup and CLI feature. */
|
|
Cakefoot game;
|
|
|
|
/* Run mainloop until the mainloop is flagged to exit, then quit the game. */
|
|
game.run([&](float timestamp)
|
|
{
|
|
game.draw(timestamp);
|
|
});
|
|
game.quit();
|
|
|
|
return 0;
|
|
}
|