New engine features

Top  Previous  Next

New MED features

 

MED has got tools for swapping and removing the second UV coordinate set.

 

aum81_hot1

 

 

mouse_panel

 

This pointer gives the name of the panel that is touched by the mouse pointer (if any).

 

BMAP* pointer_tga = "pointer.tga";

 

PANEL* gameover_pan = // just a panel example

{

       layer = 15;

       pos_x = 300;

       pos_y = 200;

       bmap = "gameover.pcx";

       flags = VISIBLE;

}

 

function mouse_startup() // your typical mouse snippet

       mouse_mode = 2;

       mouse_map = pointer_tga;

       while (1)

       

               vec_set(mouse_pos, mouse_cursor);

               wait(1);

       }

}

 

function panels_startup() // click any panel and drag it to the desired screen position

{        

       while(1)

       {

               if (mouse_panel) // the mouse pointer is placed over a panel?

               {

                       while (mouse_left) // then run this loop until the player releases the left mouse button

                       {

                               mouse_panel.pos_x = mouse_cursor.x; // move the panel at the position given by

                               mouse_panel.pos_y = mouse_cursor.y; // mouse_cursor.x and mouse_cursor.y

                               wait (1);

                       }

               }

               wait(1);

       

}

 

 

Map compiler improvements

 

The lightmapping algorithms of the map compiler were improved; lighting 2.0 is always activated now. The "Supersampling" option resamples the lightmaps, removing the "staircase" artifacts.

 

aum81_hot2

 

aum81_hot3