LandMass – a random map generator

By | 2002-06-01

LandMass is based on the old Commodore 64 game “Lords of Conquest” by Electronic Arts. This game played a little bit like the board game Risk, only there were different playing pieces and –here’s the cool part– the playfield was generated randomly, so that no two games were the same.

As it stands right now, LandMass simply generates a random world based on settings that you can tune. Each world is composed of countries and water. Countries that border each other are shown with a borderline between them. Each country has properties that can be read, such as its color or which other countries border it. LandMass also contains a small example of how to read map parameters and interact with the map.

The program is class-based, which means you can take the Map class and drop it into your own program. And since each map is a separate object, you can generate multiple maps at once. With very little work you can have cool custom maps in your own program!

Original Author: Jason Merlo

Inputs

None.

Assumptions

None. Code will run as is.

Returns

None. Just a cool map!

Side Effects

None known.

API Declarations

Just the standard BitBlt stuff. This is included in the zip.

Attachments

FileUploadedSize
CODE_UPLOAD1241.zip9/3/2020 3:45:00 PM232505
Author: dwirch

Derek Wirch is a seasoned IT professional with an impressive career dating back to 1986. He brings a wealth of knowledge and hands-on experience that is invaluable to those embarking on their journey in the tech industry.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.