From: William K. <nb...@so...> - 2001-08-31 22:42:18
|
I've added a command-line switch to the game to let the person running it override the current settings (not that there ARE any yet, but anyway) So for example, say some students are just learning addition. There can be a big "+" icon on the screen that they double-click. It will run the game as: tuxmath --operator add A few days later, they learn subtraction. An "-" icon would run the program as: tuxmath --operator subtract Later, they'll get to play the game with both invoked. A "+/-" icon would run the game: tuxmath -o add -o subtract ("-o" is just short for "--operator"... and you can have as many of these options on the command-line as needed. Any unknown operator, though (for example "-o quack") will abort with a 'usage' report.) The loader for the game will work as follows: * set defaults [ command-line and otherwise ] * load settings [ if there are any ] * override settings [ from command-line ] Kewl. Side-note, I'm about to integrate Sam's awesome Tux animations into the game. Then I should really get home. 3-day weekend ahead of me! :) -bill! |