New engine features

Top  Previous  Next

bmap_to_format

 

This instruction converts a bitmap to one of the following color formats: 8888, 888, 4444, 1555, or 565. You will want to use it if you plan to convert a render target or a compressed bitmap to a standard format, which can be accessed through pixel functions.

 

 

New command line option: -nwnd

 

This command suppresses the engine startup window; it can be extremely useful if the engine is started by another program, or if you simply want to create your own loading screens.

 

 

New entity flag: e_clipped

 

Tells us if an entity was clipped away by the bsp process during the last frame. This way we can allow the entity functions (particle functions, and so on)  to run only if the entity is potentially visible.

 

action particle_clipping

{

       my.invisible = on;

       my.passable = on;

       while (1)

       {

               if (my.e_clipped == off) // the entity was visible in the previous frame?

               {

                       effect(effect_smoke, 100, my.x, normal);

               }

               wait (1);

       }

}