UnderwareDesign
May 24, 2013, 02:19:28 PM *
News: Code Conversion - Convert Amos To PlayBASIC  (2nd,April,2013)
   Home    
Pages: [1]
 
Author Topic: Play Mapper Loader  (Read 2081 times)
Member
Development Team


WWW
« 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 Smiley ).  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  

   Get the current official release versions from  PlayMapper  (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

     Play Mapper Loader V0.01 (login required)




Related LInks

      Loading Exported Play Mapper Mini Levels




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.  
 

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




playMapperV046_LoaderExample.jpg (13.49 KB, 404x317 - viewed 348 times.)
Logged

Member


WWW
« Reply #1 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
Logged

Member
Development Team


WWW
« Reply #2 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'   

Logged

Pages: [1]
 
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.13 | SMF © 2006-2009, Simple Machines LLC | Privacy Policy Valid XHTML 1.0! Valid CSS!