UnderwareDESIGN

PlayBASIC => Resources => Source Codes => Topic started by: kevin on June 28, 2008, 05:32:04 PM

Title: Play Mapper Loader
Post by: kevin on June 28, 2008, 05:32:04 PM
 Play Mapper Loader V0.01

  This example includes a version of the PlayMapper loader library.   The library is called "PlayMapper.pba"  (of course :) ).  To use it, simply copy the file to your own project file and Include it within your project.  Either via the IDE's project manager, or using the #Include directive.  Same result.



Function List

 
       LoadPlayMapper(filename$)

 



    This version only includes one main user function.  There's some other functions in the library for reading the various hunk types found in the Play Mapper files, but you'll probably not ever need to use them directly.    But they are there!






Download PlayMapper


  Get the latest work in progress versions from PlayMapper WIP Thread (http://www.underwaredesign.com/forums/index.php?topic=2279.0)  

  Get the current official release versions from  PlayMapper (http://www.underwaredesign.com/forums/index.php?topic=2301.0)  (from Tools Board)

  Note:  PlayMapper is updated intermittently, therefore it's always a good idea to check for the WIP thread for any new information and/or beta downloads.   Once an update phase is completed however, the last WIP version becomes the officially supported version posted in the tools board.    



 


Download Loader Library


    [plink] Play Mapper Loader V0.01 (http://www.playbasic.com/files/Tools/PlayMapper/PlayMapperLoaderV001.zip)[/plink]




Related LInks


     Loading Exported Play Mapper Mini Levels (http://www.underwaredesign.com/forums/index.php?topic=2280.0)




PlayBasic FX compatibility


    If you intent to use this library with current edition of PlayBasicFX (1.7x versions at the time of writing), then you'll need to include the following helper function.   This i required as this helper function has not yet been added to PBFX.  



Function ReadNewFile(filename$)
if Fileexist(filename$)
FileIndex=getFreeFile()
ReadFile Filename$,fileindex
endif
endfunction Fileindex



Title: Re: Play Mapper Loader
Post by: thaaks on June 30, 2008, 02:31:44 AM
Hey, that's great! Will test it tonight!

Maybe you should make this part of the Play Mapper Mini zip. So the users would always have the appropriate lib and a working example how to load their maps back into a game.

Great stuff!

Thanks,
Tommy
Title: Re: Play Mapper Loader
Post by: kevin on June 30, 2008, 11:21:12 AM

Quote
Maybe you should make this part of the Play Mapper Mini zip. So the users would always have the appropriate lib and a working example how to load their maps back into a game.

   The Map loader will be a standard library.  Just like it's older brother is.   Anything based upon that will be either a companion library or an 'optional extra'