Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Map Maker [with source]
Index -> Programming, Turing -> Turing Submissions
View previous topic Printable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
lordroba




PostPosted: 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



Mapmaker.rar
 Description:

Download
 Filename:  Mapmaker.rar
 Filesize:  21.3 KB
 Downloaded:  259 Time(s)

Sponsor
Sponsor
Sponsor
sponsor
Display posts from previous:   
   Index -> Programming, Turing -> Turing Submissions
View previous topic Tell A FriendPrintable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 1 Posts ]
Jump to:   


Style:  
Search: