Chapter 10. Plugins
99
The only problem is that they are based on a 4
×
4 keyboard, but since most games do
not use all of the buttons, this can easily be worked around.
To do this, one may put a
.c8k
file with the same name as the original program
which contains new key mappings (for
BLINKY.ch8
, one writes a
BLINKY.c8k
file). That
.c8k
file contains 16 characters describing the mapping from the Chip8 keyboard to
the default key mapping (that way, several Chip8 keys can be pressed using only one
Rockbox key). For example, a file containing the single line:
Code
0122458469ABCDEF
would correspond to the following non-default mappings:
3
→
2, 6
→
8, 7
→
4, 8
→
6.
The default keymappings are:
Chip8
Off
0
1
2
3
4
5
6
7
8
9
A
B
C
D
E
F
Key
On/Off
Up
Up
Left
Mo
de
Righ
t
Do
wn
Some places where can you can find
.ch8
files:
•
The PluginChip8 page on www.rockbox.org has several attached:
•
Check out the HP48 chip games section:
http://www.hpcalc.org/hp48/games/chip/
•
Links to other chip8 emulators:
http://www.zophar.net/chip8.html
10.3.3. Frotz
Frotz is a Z-Machine interpreter for playing Infocom’s interactive fiction games, and
newer games using the same format. To start a game open a
.z1 - .z8
file in the
File
Browser
. Most modern games are in the
.z5
or
.z8
format but the older formats used
by Infocom are supported.
Z-Machine games are text based and most depend heavily on typed commands. The
virtual keyboard is used for text entry, both for typing entire lines and for typing single
characters when the game requires single character input.
Sounds, pictures, colour and Unicode are not currently supported, but the interpreter
informs the game of this and almost all games will adapt so that they are still playable.
This port of Frotz attempts to be compliant with the Z-Machine Specification version
1.0.
Some places where you can find Z-Machine games, and information about interactive
fiction:
The Rockbox manual
(version 3.14)
Archos Ondio