Re: A83: External Level
[Prev][Next][Index][Thread]
Re: A83: External Level
what are you talking about? external levels are stored in programs. to
access them, depending on your implementation, you can either look for
them by name...
ex:
prgmZNAME___
where ZNAME is the prefix for every level, and ___ is the name of the
level. a good example is penguins or slopes).
...or store a standard level detection string at the beginning of the
level. this is the method used in the zlib detect routine. and if you
must know, using this routine is much smaller and easier than writing
your own routine. for a good example of using this method check out the
source to bytes (it's an sos program).
>As far as i know is it a very simple matter. First you'll have to >create
>a program to store the level in a list. The program will have to do the
>following:
>
>1) create the list
>2) get the address of the first element in the list
>3) store the level there
>
>Now, when the game is going to retrieve the level from the list, simply
>look the list up in the symbol table and get the address of the first
>element. That'll be the address of the level too.
>
>Just remember to make the list large enough...
References: