///////////////////////////////
#include <acknex.h>
#include <default.c>
///////////////////////////////
function main()
{
vec_set(screen_size,vector(800,400,0));
vec_set(screen_color,vector(50,1,1)); // dark blue
vec_set(sky_color,vector(50,1,1)); // dark blue
video_window(NULL,NULL,0,"My New Game");
d3d_antialias = 1;
shadow_stencil = 3;
/////////////////////////////
// Video section
var vid_handle=0; // create a local var to hold the media handle
vid_handle=media_play("this_vid.wmv",NULL, 75); //play media and set var
// loop only while var is valid
while(vid_handle)
{
if(key_any) // check if any key was pressed
media_stop(vid_handle); // stop vid
wait(1); // required wait avoids endless looping
}
///////////////////////////////////
// level_load("my_level.wmb");
// vec_set(camera.x,vector(-250,0,50));
// vec_set(camera.pan,vector(0,-15,0));
}