eHow launches Android app: Get the best of eHow on the go.

How To

How to Make a World Text Map

Contributor
By Giselle Diamond
eHow Contributing Writer
(0 Ratings)

Learn how to make a world text map by adjusting some simple mapping codes in a text editor in order to build a digital world map using text. You can recreate the real world, or generate a fictional world based on a book, role-playing game or movie.

Difficulty: Easy
Instructions
  1. 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.

  2. 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

  3. 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

Tips & Warnings
  • Remember that by building this world map text editor you will be operating with your computer differently than by using pre-existing software or new software products. They are programs that can do damage if not properly constructed. Be sure to check your programming before running, or run it in a safe folder environment.
Subscribe

Post a Comment

Post a Comment

Related Ads

  • Have you done this? Click here to let us know.
I Did This
Tags
Get Free Computers Newsletters

Copyright © 1999-2009 eHow, Inc. Use of this web site constitutes acceptance of the eHow Terms of Use and Privacy Policy .   en-US Portions of this page are modifications based on work created and shared by Google and used according to terms described in the Creative Commons 3.0 Attribution License. † requires javascript

eHow Computers
eHow_eHow Technology and Electronics