| 1 |
The memory game |
| 2 |
========================= |
| 3 |
|
| 4 |
By Xiaoguang Zhang, <[email protected]> |
| 5 |
|
| 6 |
The Linux Memory Game is an X11 game for children ages 3 and up, based on |
| 7 |
the card game "Memory". It is written using GTK+ library. Although it is a |
| 8 |
children's game, it has five skill levels, the higher ones are challenging |
| 9 |
to adults as well. Additionally, if compiled in the DIFFERENT_CARDS_IN_PAIR |
| 10 |
mode, it can be a very good teaching tool for teaching languages, concepts, |
| 11 |
or association. This is still an alpha release, but essentially all the |
| 12 |
features are already implemented, and the game is very playable. |
| 13 |
|
| 14 |
I hijacked some of the routines from the Linux Letters and Numbers game By |
| 15 |
Kirk Ismay, <[email protected]>. It was built using the GTK (Gimp |
| 16 |
ToolKit) for X. It presently works with 1.2. |
| 17 |
|
| 18 |
For more information about the GTK check out: |
| 19 |
http://www.gtk.org |
| 20 |
|
| 21 |
It is intended for children 3 and up. |
| 22 |
|
| 23 |
Features |
| 24 |
======== |
| 25 |
|
| 26 |
* Extensible - add new images yourself without having to make changes |
| 27 |
to the program. |
| 28 |
|
| 29 |
* Five skill levels appropriate for the youngest and the ones with the |
| 30 |
best brains. |
| 31 |
|
| 32 |
* Can play two card matching or three card matching (more challenging!) |
| 33 |
|
| 34 |
* Can set to match different cards. This can be used with apropriately |
| 35 |
designed pictures to teach children (or adults) words, concepts, or |
| 36 |
another language. |
| 37 |
|
| 38 |
Adding Pictures |
| 39 |
=============== |
| 40 |
|
| 41 |
1. Convert your pictures to xpm format. Make sure it is no more than |
| 42 |
64x64 pixels for best results. The Gimp is excellent for this ;-) |
| 43 |
|
| 44 |
2. Copy them to the pixmaps subdirectory (/usr/local/share/pixmaps/ by |
| 45 |
default). You must have at least 8 pictures in the same directory for |
| 46 |
the game to work. You can now put the pixmaps into a different directory |
| 47 |
and point to it through the environment variable LMEM_PIX_DIR. |
| 48 |
|
| 49 |
3. For pictures to be used in the matching different cards mode, you need |
| 50 |
to make two different pictures for each pair. For example, one is a |
| 51 |
smiley face named smile1.xpm, and the second one is the word "smile" |
| 52 |
in the picture and named smile2.xpm. It is important that each pair |
| 53 |
have filenames that use at least the same first few letters because |
| 54 |
that's how the program recognizes that they are in a pair. |
| 55 |
|
| 56 |
4. Start the game and enjoy. |