Computer Science Canada

Map Maker [with source]

Author:  lordroba [ Mon May 12, 2008 8:09 pm ]
Post subject:  Map Maker [with source]

here's a fairly flexible little map maker program. You can tile maps using two different layers. The "ALL' function will cover the entire layer in that tile. The 'Pass' function lets you set which tiles you can walk on. "Coin" is used where you want to place coins. I used this for a pacman style game I made, but you can ignore it. There are only about 18 different tiles right now, but you can make your own and place then in the tile folder. Make sure you change the name in the source code though.

if you want to call the map in a game, do something like this....

Turing:

procedure readmapdata
    open : mapfile, mapid, read
    for i : 1 .. 640
        read : mapfile, gps (i).p, gps (i).p2, gps (i).p3, gps (i).p4
    end for
    close : mapfile
end readmapdata


: