mirror of
https://github.com/zoriya/Bomberman.git
synced 2026-06-01 01:38:14 +00:00
Adding a state and scene utils
This commit is contained in:
+15
-11
@@ -7,17 +7,21 @@
|
||||
|
||||
|
||||
#include <iostream>
|
||||
#include <Wal.hpp>
|
||||
#include "Runner/Runner.hpp"
|
||||
|
||||
int main()
|
||||
void usage(const std::string &bin)
|
||||
{
|
||||
WAL::Wal wal;
|
||||
|
||||
try {
|
||||
wal.run();
|
||||
return 0;
|
||||
} catch (const std::exception &ex) {
|
||||
std::cerr << ex.what() << std::endl;
|
||||
return 84;
|
||||
}
|
||||
std::cout << "Bomberman." << std::endl
|
||||
<< "\tUsage: " << bin << " [options]" << std::endl
|
||||
<< "Options:" << std::endl
|
||||
<< "\t-h:\tPrint this help message" << std::endl;
|
||||
}
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
if (argc == 2 && std::string(argv[1]) == "-h") {
|
||||
usage(argv[0]);
|
||||
return 1;
|
||||
}
|
||||
return Bomberman::run();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user