Main Menu

PlayBasic Files

Started by zlog08, August 16, 2007, 02:21:15 AM

Previous topic - Next topic

zlog08

Here I am again with another beginners question.......
I opened up a piece of code called '2D_Platformer_In_3DWorld' for example...
When I go to the IDE  under PROJECT and select Manage Media Files I see different file types used for this code.
There are files with extension .pbp , .pbr. and multilpe files with .pba .
Are there any tutorials on what these file types are used for?
I see in this specific piece of code there are multiple files with .pba extension. I did not realize that you could have multiple files of this type in the  same program. Is this  done more or less for the convenience of the programmer --- to keep diferent pieces of code seperate ?
Just curious.!

kevin


For info on the file types see   IDE HELP   (under HELP /  IDE HELP  or just press SHIFT F1)

Quote

The project file (*.PBP) contains all project details, ie the internal source files are used for the project, the name of the author etc.
The source files (*.PBA) contain the actual program code. Each project can manage up to 127 internal source files and 127 external source files.
Then icon, version Information and splash screen are stored in the resource file (*.PBR).





Quotesee in this specific piece of code there are multiple files with .pba extension. I did not realize that you could have multiple files of this type in the  same program. Is this  done more or less for the convenience of the programmer --- to keep diferent pieces of code seperate ?

  Yes, as projects larger it's much more convenient to seperate your code up into related source files.  So all the of code that handles the Aliens in your game could be placed into it's own .PBA file.    So if you ever need to change or find some Alien related, you can jump directly to the code segment and  make your changes

     



zlog08

Well, that just shows you how much I know .. I did not realize there was a seperate Help file for the IDE .... looks like I have some more reading to do tonight .... Thanks for the speedy reply!!