@@ -54,7 +54,9 @@ def process_frame(game, frame_time):
54
54
55
55
def main ():
56
56
parser = argparse .ArgumentParser (prog = 'snakeng' ,
57
- description = 'Simple terminal-based snake game showing how to use snakeng to implement a game' ,
57
+ description = "Simple terminal-based snake game showing how "
58
+ "to use snakeng. Use arrow keys to change snake direction, "
59
+ "use 'p' to pause, and use 'Ctrl-C' to quit." ,
58
60
formatter_class = argparse .ArgumentDefaultsHelpFormatter )
59
61
60
62
parser .add_argument ('-x' , '--width' , default = 40 , type = int , help = 'Game area width in characters' )
@@ -63,7 +65,7 @@ def main():
63
65
help = 'Sets the snake speed for the whole game. If unset, the snake speed will '
64
66
'automatically increase as the snake size increases.' )
65
67
parser .add_argument ('-o' , '--output-file' , default = None , type = str , help = 'If set, the game state will be'
66
- ' saved to the specified filename' )
68
+ ' saved to the specified filename when you quit with Ctrl-C ' )
67
69
parser .add_argument ('-i' , '--input-file' , default = None , type = str , help = 'If set, the game state will be'
68
70
' loaded from the specified filename' )
69
71
parser .add_argument ('-f' , '--fps' , default = 24 , type = int , help = 'Framerate in frames per second' )
0 commit comments