ksqsf / game

Game dev playground
1 stars 0 forks source link

You can add a dialog box to choose map before game begin #1

Open sirius1242 opened 6 years ago

sirius1242 commented 6 years ago

I think it maybe better to have many maps, not only just copy the map you want to play to data/map1.maze

ksqsf commented 6 years ago

Hi, @sirius1242 . Good point! I'll consider how this will be better implemented. Any suggestions and pull requests are most welcome.

As for now, I've added a little command-line support in commit 6debb63 to read an arbitrary map file. Additionally, you can try the following Bash script. It sorta realizes what you want.

#!/bin/bash
/path/to/maze `zenity --list --column Map /path/to/data/*.maze`