News : The level of daily SPAM has reached insane proportions, all registrations are now manual. I ask you to send me an e-mail (john (at) murga (dot) org), to confirm that you want me to create an account for you.


Post Reply  Post Thread 
Tile based game engine for murgaLua
Author Message
chrimo
Member
***


Posts: 94
Group: Registered
Joined: May 2007
Status: Offline
Reputation: 0
Post: #1
RE: Tile based game engine for murgaLua

Hi,
last night I started new map design with the following code:

Code:
--[[
    Tile object signatures for ASCII-MAP

    floor            = '_'
    wall            = '#'
    water              = 'W'
    tree               = 'T'
    light source          = 'L'
    sound source        = 'S'
    enemy              = 'E'
    door               = 'D'
    friend               = 'F'
    NXT              = 'N'

--]]

    local i,y;
    y=20;
    map={}
    for i=1,y do
        map[i]={}
    end


    map[1]= {'#','#','#','#','#','#','#','#','#','D','#','#','#','#','#','#','#','#','#','#' };

    map[2]= {'#','_','_','_','_','_','_','_','_','_','_','_','_','_','_','_','_','_','_','#' };

    map[3]= {'#','_','_','_','_','_','_','_','_','_','_','_','_','_','_','_','_','_','_','#' };

    map[4]= {'#','_','_','_','_','_','_','_','_','_','_','_','_','_','_','_','_','_','_','#' };

    map[5]= {'#','_','_','_','_','_','_','_','_','_','_','_','_','_','_','_','_','_','_','#' };

    map[6]= {'#','_','_','_','_','_','_','_','_','_','_','_','_','_','_','_','_','_','_','#' };

    map[7]= {'#','_','_','_','_','_','_','_','_','_','_','_','_','_','_','_','_','_','_','#' };

    map[8]= {'#','_','_','_','_','_','_','_','_','_','_','_','_','_','_','_','_','_','_','#' };

    map[9]= {'#','_','_','_','_','_','_','_','_','_','_','_','_','_','_','_','_','_','_','#' };

    map[10]={'#','_','_','_','_','_','_','_','_','_','_','_','_','_','_','_','_','_','_','# '};

    map[11]={'#','_','_','_','_','_','_','_','_','_','_','_','_','_','_','_','_','_','_','# '};

    map[12]={'#','_','_','_','_','_','_','_','_','_','_','_','_','_','_','_','_','_','_','# '};

    map[13]={'#','_','_','_','_','_','_','_','_','_','_','_','_','_','_','_','_','_','_','# '};

    map[14]={'#','_','_','_','_','_','_','_','_','_','_','_','_','_','_','_','_','_','_','# '};

    map[15]={'#','_','_','_','_','_','_','_','_','_','_','_','_','_','_','_','_','_','_','# '};

    map[16]={'#','_','_','_','_','_','_','_','_','_','_','_','_','_','_','_','_','_','_','# '};

    map[17]={'#','_','_','_','_','_','_','_','_','_','_','_','_','_','_','_','_','_','_','# '};

    map[18]={'#','_','_','_','_','_','_','_','_','_','_','_','_','_','_','_','_','_','_','# '};

    map[19]={'#','_','_','_','_','_','_','_','_','_','_','_','_','_','_','_','_','_','_','# '};

    map[20]={'#','#','#','#','#','#','#','#','#','#','#','#','#','#','#','#','#','#','#','# '};

-- end

Is this useful or any better ideas ?
Bye
Christian

08-21-2007 08:14 PM
Find all posts by this user Quote this message in a reply
Post Reply  Post Thread 

Messages In This Thread
RE: Tile based game engine for murgaLua - chrimo - 08-21-2007 08:14 PM

View a Printable Version
Send this Thread to a Friend
Subscribe to this Thread | Add Thread to Favorites

Forum Jump: