- You are the Hunter starts in the dark cave with rooms. Somewhere here lives one or more Wumpuses - terrible monster.
- Your main goal is to kill all Wumpuses and return to home through the caves, underwater, dead city and some other places.
- On the way you will be trapper in danger of two types:
- things which move you from one room to another room (for example, The Bats);
- things that kill you (for example, The Bottomless pits "
- You have only the bow, the limited count of arrows on each level and the device that detects monsters and traps
- Meeting of the Wumpus and the Hunter means dead of the Hunter.
- Meeting with The Bats or similar things is means that you moved from meeting room to another one randomly.
- Meeting with the trap like The Bottomless Pit means dead of the Hunter.
- To leave the level, you should kill all Wumpuses, find the door and open it. At the first level the door is unhidden.
LMB - move to room\n"
RMB - shot into the room\n"
MMB - mark/unmark the room\n";
Game has following dependicies:
- game's gui based on
FLTK
library - game's audio output is provided by
audio_out
library (wrapper to Bass library)
- download game archive and unpack it to, i.e.,
c:/wump/
- create folder
bin
inc:/wump/
if not presents, or remove `.exe files
Standart installation of game is provided by cmake
. Thus to install game using cmake
we should install FLTK
library by cmake
too (since only by this install type we would have all necessary files for cmake
).
- download latest
FLTK
release from fltk`s site - unpack to folder, i.e.
c:/fltk_1.3.4/sources/
- open
fltk
folder in MSVC byFile -> Open -> Folder
, then starts auto cache generation - choose
x86-Release
on thePanel
- then
CMake -> Build All
- after building was ended - copy
build
dir toc:/fltk_1.3.4/
(from dir usually `~/CMakeBuilds/{some_hash}/x86-build/) - then
CMake -> Install -> FLTK
- after installing was ended - copy
install
dir toc:/fltk_1.3.4/
(from dir usually `~/CMakeBuilds/{some_hash}/x86-install/)
- download archive from official bass library site
- unpack
mp3-free/bass.dll
to thebin
directory of the game build folder (i.e.c:/wump/bin/
) - unpack
c/bass.lib
to the current build folder (usually~/CMakeBuilds/{some_hash}/x86-build/
)
- in MSVC, open
c:/wump/
byFile -> Open -> Folder
Build starts automatically, but will stop with errors about absent some FLTK`s cmake files:
- choose
x86-Release
on thePanel
- go to
CMake -> Change CMake Settings -> CMakeLists.txt
- add to
cmakeCommandArgs
path to FLTK build, i.e. "cmakeCommandArgs": "-DFLTK_DIR:PATH="c:/fltk_1.3.4/build/"" - build all with
CMake -> Build All
- copy
wump_game.exe
,wump_test.exe
andc:/wump/source/src/resources/
toc:/wump/install
You need to download and install Microsoft Visual C++ 2015 Redistributable Package to be able to run game.
$ cd ~/
$ git clone https://github.com/ans-hub/wumpus_game.git
$ cd wumpus_game
$ mkdir build
$ mkdir bin
Standart installation of game is provided by cmake
. Thus to install game using cmake
we should install FLTK
library first by cmake
too (since only by this install type we would have all necessary files for cmake
).
$ mkdir ~/libs/fltk
$ cd ~/libs/fltk/
$ svn co http://seriss.com/public/fltk/fltk/branches/branch-1.3/ fltk-1.3
$ mkdir build
$ cd build
$ cmake ../
$ make
$ wget http://us.un4seen.com/files/bass24-linux.zip
$ unzip bass24-linux.zip -d tmp/
$ sudo cp tmp/mp3free/libbass.so /usr/local/lib/
$ sudo chmod a+rx /usr/local/lib/libbass.so
$ sudo ldconfig
$ rm -rf tmp/ bass24-linux.zip
$ cd ~/wumpus_game/build
$ cmake ../ -DFLTK_DIR:PATH="~/libs/fltk/build"
$ cp wump_* ../bin
$ cp -r ../src/resoures/ ../bin/
- "Hunt the wumpus", invented by Gregory Yob in 1972 or 1973.
- Original game has 20-rooms labirint since its based on plane projection of regular dodecahedron using Schlegel diagram. In my implementation this is more than 20 rooms in depends of game level.