HurricanGame / Hurrican

Freeware jump and shoot game created by Poke53280, based on the Turrican game series by Manfred Trenz
61 stars 22 forks source link

Added start level argument #75

Open Mia75owo opened 5 months ago

Mia75owo commented 5 months ago

This adds the --startlevel argument. When this gets passed to the game, it skips loading the cractro, main menu and the intro to directly start into the level. This is just a little handy feature for debugging purposes and for using external tools (like being able to directly start a level from a map editor).

drfiemost commented 4 months ago

Can't get it to work, what is the correct usage? Also the help text is wrong.

Mia75owo commented 3 months ago

Sorry, it was a stressful week when I wrote this. There were multiple mistakes in this terrible PR which I think are fixed now. The correct usage for the flag is to pass a path to a map file. For example: (executed in Hurrican/Hurrican/build)

./hurrican -RL ../data/levels/mpde.map
./hurrican --startlevel ../data/levels/temple.map
drfiemost commented 3 months ago

Thanks, will have a look, as time permits.

drfiemost commented 3 months ago

Ok, now it works, but it's similar to the --level option, except that it takes you directly to the game. Could this be changed into something like a skipmenu option to be used in combination with the former?