XorCurses-0.0.2 (outdated)

This is the second release of my XorCurses game. Written in C, and using the ncurses library, it runs on Linux and hopefully other Unix like systems. The game is totally based upon Xor by Astral Software - created in 1987.

This release is quite an upgrade from the previous release. As you can see, there is now a menu to choose which level you want to play. Only the first 3 levels from the original game are available right now, as the other levels use objects which I have not written the code yet to make them work. Level 0 is a brand new level I have designed myself. I am yet to complete it.

The game play is, I think, complete for the first three levels - you can play them and finish them just like in the original game. Since the previous release of XorCurses, I have written the code to make the fish fall, and the chickens run to the left. I found this quite dificult to write, it took several days before I had even worked out how to write this code.

When I came back to this game, I had forgotten the levels to some extent, and was never very good at them back in the early 1990's. The map was invaluable - and this prompted me to write the code to display the map now and not later so the first three levels are playable.

One of the problems I faced in writing the map code, was the fact I am using a character based display - there are not enough characters on the standard console/terminal to display the game area and the map (like the original game does do). To solve this, I decided to only display half the characters on the map, which means half the detail of the map is lost. I did however, attempt to code it so the masks would always show up - not in numbers - but as a guide to where they are. This code is not quite right yet. Despite this, the small map is only a guide, and the player can press 'm' or 'M' to display the full map in all its detail. Unfortunately this also is unable to fit onto the standard terminal/console size, and so the full map can be scrolled up and down to see every part of it.

Download XorCurses-0.0.2.tar.bz2

tar -jxf XorCurses-0.0.2.tar.bz2
cd XorCurses-0.0.2
cat README | less



Guess what? There's a slight problem with that. There's a conditional jump based on an uninitialised variable... And a couple of other minor glitches...

Download XorCurses-0.0.2b.patch to fix these and before entering the XorCurses-0.0.2 directory (as in the instructions above) do the following:

patch -p0 < XorCurses-0.0.2b.patch

I think that should work. The .patch file should be in the same directory as the XorCurses-0.0.2 directory (if you put the .patch in the XorCurses-0.0.2 directory then change -p0 to -p1 (dash pee one).


"XorCurses-0.0.2 (outdated)"

New release of XorCurses

Journal entry - 04:15 Tuesday 27 January 2009

DISCLAIMER: The opinions and attitudes of James W. Morris as expressed here in the past may or may not accurately reflect the opinions and attitudes of James W. Morris at present, moreover, they may never have.


this page last updated:29th April 2013 jwm-art.net (C) 2003 - 2017 James W. Morris

script time:0.0772