Now if you pass a simple t as an arg it will do a fast autowalk at the start, mostly for testing.
This commit is contained in:
parent
14a96d0b63
commit
d03abba8e4
3 changed files with 11 additions and 2 deletions
6
main.cpp
6
main.cpp
|
@ -2,13 +2,17 @@
|
|||
#include "textures.hpp"
|
||||
#include "sound.hpp"
|
||||
|
||||
int main() {
|
||||
int main(int argc, char* argv[]) {
|
||||
textures::init();
|
||||
sound::init();
|
||||
sound::mute(true);
|
||||
gui::FSM main;
|
||||
main.event(gui::Event::STARTED);
|
||||
|
||||
if(argc > 1 && argv[1][0] == 't') {
|
||||
main.start_autowalk(0.1);
|
||||
}
|
||||
|
||||
while(main.active()) {
|
||||
main.render();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue