Home

An easy to play roguelike game. You can find it here, but I had some trouble for compiling it on my Raspberry Pi (see below for instructions).

ularn

Compiling uLarn on a Raspberry Pi

In order to make the game playable, I had to add the signed keyword in four locations. First, edit the file called ularn_game.h and replace the two lines:

extern char diroffx[];
extern char diroffy[];

by:

extern signed char diroffx[];
extern signed char diroffy[];

Then, edit the file called ularn_game.c and replace the two lines:

char diroffx[] = { 0,  0, 1,  0, -1,  1, -1, 1, -1 };
char diroffy[] = { 0,  1, 0, -1,  0, -1, -1, 1,  1 };

by:

signed char diroffx[] = { 0,  0, 1,  0, -1,  1, -1, 1, -1 };
signed char diroffy[] = { 0,  1, 0, -1,  0, -1, -1, 1,  1 };

Of course, you need to edit the file called config.h in order to set your frontend to use ncurses rather than X11; just comment the #define UNIX_X11 line and uncomment the //#define UNIX_TTY line.

Then you have to compile the game by typing:

make -f makefile.tty

Installing the game

If you want to install the game, you have to fix some other bugs before compiling it. Edit the file called makefile.tty and replace Umap with Umaps then edit the file called config.h and look for the line:

#define LIBDIR "lib"

replace it with:

#define LIBDIR "/usr/local/share/ularn"

Then you have to compile the game and install it. Finally, you have to copy the file called Uscore in the directory /usr/local/share/ularn

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s