aboutsummaryrefslogtreecommitdiff
path: root/source/options.gperf
diff options
context:
space:
mode:
Diffstat (limited to 'source/options.gperf')
-rw-r--r--source/options.gperf28
1 files changed, 28 insertions, 0 deletions
diff --git a/source/options.gperf b/source/options.gperf
new file mode 100644
index 0000000..5d07a6f
--- /dev/null
+++ b/source/options.gperf
@@ -0,0 +1,28 @@
+%{
+enum {
+OPTION_NONE=0,
+OPTION_HELP,
+OPTION_RESOLUTION,
+OPTION_FPS,
+OPTION_UPS,
+OPTION_FONT,
+OPTION_SPRITESHEET,
+OPTION_SPRITESHEET_SCALE,
+OPTION_PLAYER_COUNT,
+OPTION_MAP_SIZE,
+};
+%}
+struct options { char * name; int number; };
+%%
+help, OPTION_HELP
+h, OPTION_HELP
+?, OPTION_HELP
+resolution, OPTION_RESOLUTION
+fps, OPTION_FPS
+ups, OPTION_UPS
+font, OPTION_FONT
+spritesheet, OPTION_SPRITESHEET
+spritesheet_scale, OPTION_SPRITESHEET_SCALE
+players, OPTION_PLAYER_COUNT
+map, OPTION_MAP_SIZE
+map_size, OPTION_MAP_SIZE