Jump to content

BSL:Tutorial/Scratch: Difference between revisions

m
Line 35: Line 35:
Open up your IGMD and look for the following folder: EnvWarehouse.
Open up your IGMD and look for the following folder: EnvWarehouse.
Open it up, and we'll take a look at how it it laid out. There should be several files in here. Open using NOTEPAD, the one titled '''warehouse_main.bsl'''. It should look like this:
Open it up, and we'll take a look at how it it laid out. There should be several files in here. Open using NOTEPAD, the one titled '''warehouse_main.bsl'''. It should look like this:
 
func void main(void)
 
{
 
    env_show 2010 0
<tt>
    gl_fog_blue=.15
func void main(void)<br>
    gl_fog_red=.15
{<br>
    gl_fog_green=.15
    env_show 2010 0<br>
    gl_fog_start=.99
    gl_fog_blue=.15<br>
    gs_farclipplane_set 5000
    gl_fog_red=.15<br>
    obj_create 20 20
    gl_fog_green=.15<br>
    level_start
    gl_fog_start=.99<br>
}
    gs_farclipplane_set 5000<br>
    obj_create 20 20<br>
    level_start<br>
<br>
}</tt>
 
This is an example of a '''main''' file. It contains the information of how the level starts.
This is an example of a '''main''' file. It contains the information of how the level starts.