Barbarians
Copyright (C) Damian Walker 2010-2011

Barbarians is a game of strategy for one player, running on the Psion Organiser II.  You take the lead of a civilised league of twelve cities at the very time the     barbarians are entering the land.  Your task is to raise armies and send them against the advancing hordes, and you will not rest until every last one is wiped out.  While this is going on, you have to manage your empire's economy.  [Taken from the manual, available separately.]

This ZIP archive contains the OPL source code for the game.  The game is distributed under the GNU General Public Licence.  Feel free to distribute it as it is, or to modify and extend it to your own preference, according to the terms of the licence in the file LICENCE.TXT.  The OPL files are as follows:

   barbx.opl	Main program for the CM/XP
   barbz.opl	Main program for the LZ/LZ64
   barbini.opl	Initialisation
   barbgam.opl	Play game
   barbend.opl	End program and save game
   barbold%.opl	Load existing game
   barbfst.opl	Create forests
   barbmnt.opl	Create mountains
   barbsea.opl	Create sea
   barbcty.opl	Create cities
   barbinv.opl	Create invaders
   barblev.opl	Ask player to choose level
   barbopt%.opl	Get option (main game interface)
   barbadv.opl	Advance barbarians
   barbpro.opl	Produce and consume (run economy)
   barbinf$.opl	Return information for display
   barbmov$.opl	Move an army
   barbarm$.opl	Arm citizens
   barbmkt$.opl	The market (buy and sell)
   barbatk$.opl	Attack
   barbdel.opl	Game delete utility
   licence.txt	GNU General Public Licence
   readme.txt	This file

All OPL files apart from barbx and barbz can be translated for both 2-line and 4-line models.  All code specific to 2-line models is contained in barbx, and all code for 4-line models is contained in barbz.

If you have any comments or questions about Barbarians, please get in touch with me at (currently) psion@cyningstan.org.uk.

Archive date: 29 Jan 2011.