SKILL VIDEO_MODE { VAL 2; } // Set resolution to 320x240
SKILL VIDEO_DEPTH { VAL 8; } // Set to 8-bit color
BMAP splashmap,<splash.pcx>; //Sets bitmap splashmap equal to splash.pcx
PANEL splashscreen { BMAP splashmap; FLAGS REFRESH; }
MAIN main; //Call the main Action
ACTION main {
SET splashscreen.VISIBLE,ON; // sets the bitmap on
WAITT 16; //leaves it on for 1 second (16 ticks = 1 sec.)
SET splashscreen.VISIBLE,OFF; //turns the bitmap off
LOAD_LEVEL <level1.wmb>; //now load our level
CALL load_status; // restore global skills
}
Example 1: Sample splash screen.
Back to Article