Adding a state and scene utils

This commit is contained in:
Zoe Roux
2021-05-24 14:59:28 +02:00
parent 6f7e7ffaf9
commit 54fe800549
8 changed files with 136 additions and 32 deletions
+15 -11
View File
@@ -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();
}