-
Step 1
Create a new file in the text editor of choice. Here we will use Notepad as an example. Click on the "start" button and enter "Programs" and then "Accessories" to find Notepad. Notepad will open up in another window. Click on the "file" tab, then "save as." Save the file in a folder.
-
Step 2
Declare the SUBS of your text world map, which will determine how the interaction with the user will occur. KEYPRESS, MAKEMAP, SCREENPRINT, and others are how the world will understand how you are using the information through the interaction of keys and objects within the map. Here is an example of setting up SUB directives:
declare sub makemap () ' sub map builder
declare sub screenprint () ' sub print screen
declare sub keypress () ' sub direction
declare sub box () ' sub travel box
randomize timer ' reality
dim shared map (120,120) as integer ' whole map -
Step 3
Create a map using text entries to create all the parts inside of the world. Using the examples below, create the map that you want using the parameters of land, water and objects. Using SUBS to set up the parameters, begin to insert text that will randomize the creation of map parts"
Sub makeup
(land)
for i = 1 to 120
for i2 = 1 to 120 : map (I, i2) = 46 : next i2
nexti
(sea)
for i = 1 to 120
w = int(rnd * 4 +1)
for ii = 1 to 14 + w ' shore shape
map(i, ii) = 219 : map(ii, i) = 219 : map(i, 120 -- ii) = 219 : map(120 -- ii, i) = 219
next ii
nexti













