The following changes have been commited (comet'ed?) to CVS :)
-bill!
----- Forwarded message from Glen Ditchfield -----
Date: Mon, 07 Mar 2005 22:39:09 -0600
From: Glen Ditchfield
Subject: Tuxmath patch
To: bi...@ne...
Here's a patch for Tux of Math Command, and three supporting files. If I
created the patch correctly, then "patch -p0 < answer.diff" in a directory
checked out from CVS earlier today should apply the changes. Copy the two
pngs into data/images/comets and the wav into data/sounds, and you should be
good to go.
The most important change is that when a comet hits a city, the formula
displayed on the comet is replaced by the correct answer, so that the
students can learn from their mistakes.
Other changes:
- At slow speeds the game tended to draw comets on top of each other, which
really frustrated my son. I put in some code to spread them out a bit.
- Comets sizzle when hit.
- Since the formula on a comet never changes, I calculated the string to
display once, and took the sprintf call out of the inner loop.
- Tidier linkage. You had static definitions in .h files, so every .c file
that included the .h file had a separate copy of the defined items. I made
them shared extern items, or static items inside .c files, as seemed
appropriate.
- Makefile: I compile with -g and strip during installation, so I can use a
debugger during development.
----- End forwarded message -----
|