Graphics requires libxpm-dev
(for drawing pixelmaps on Xwindow) and libx11-dev
(for Xwindow). libx11-dev
should be installed by default on Linux, but you may need to install libxpm-dev
:
sudo apt install libxpm-dev
libxpm-dev
was checked to be installed on all of the Linux student environments (verified by an instructor) so it does not need to be installed there.
Run make
to compile the project, then run ./cc3k
to launch the game.
Run with a filename passed in to load a custom layout for each of the five floors. Note: Exactly five floors are expected. See customMap.txt
for an example of a valid file.
E.g.
./cc3k customMap.txt
To set a custom seed, specify -seed
followed by a number, e.g.
./cc3k -seed 42
Run cc3k
with -dlc
to enable gameplay extra features.
./cc3k -dlc
Run cc3k
with -graphics
to enable XWindow graphics.
./cc3k -graphics
Run cc3k
with -fog
to enable fog.
./cc3k -fog
- no,so,ea,we,ne,nw,se,sw: moves the player character one block in the appropriate cardinal direction.
- u direction: uses the potion indicated by the direction (e.g. no, so, ea).
- a direction: attacks the enemy in the specified direction, if the monster is in the immediately specified block (e.g. must be one block north of the @).
- s, d, v, g, t: specifies the race the player wishes to be when starting a game.
- f: stops enemies from moving until this key is pressed again.
- r: restarts the game. All stats, inventory, and gold are reset. A new race should be selected.
- q: allows the player to admit defeat and exit the game.