3d engine: C4 or tv3d or other?

Miscellaneous Forums/General Discussion/3d engine: C4 or tv3d or other?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

@HotShot2005
this is the source for main menu in S2 engine..its very simple and easy to use..and whole thing is SM3 powered, physics, layered AI, all possible editors with it(level, material,animation..)..very nice..

<define>
showMain=true
loaded=false

<init>
/* load menu level */
LoadLevel: "scenes/FPSmenu.s2";

SetParam:"width",500;
SetParam:"height",500;
SetParam:"halign",0;
SetParam:"valign",0;
SetParam:"extended",true;
SetParam:"texture","sfondo3.tga";
SetParam:"cursor","cursor.tga";
SetParam:"name","mainframe";

/* exit button */
CreateWidget:"button",0,"exit,EXIT,128,64,0,0,0,arial.ft2,0","0,175";

/* title label */
CreateWidget:"label",0,"text,S2 engine,512,64,-1,-1,0,arial.ft2,0","0,0";

/* title label */
CreateWidget:"label",0,"logo, ,256,256,0,-1,lo.tga,arial.ft2,0","0,10";

/* load level button */
CreateWidget:"button",0,"level0,START,128,64,0,0,0,arial.ft2,0","0,-35";

/* options button */
CreateWidget:"button",0,"option,OPTIONS,128,64,0,0,0,arial.ft2,0","0,105";

/* exit button */
CreateWidget:"button",0,"close,CLOSE,128,64,0,0,0,arial.ft2,0","0,35";
SetSubWidgetFlags: "close","w_grayed";

/***********************************************************/
/* optionFrame */
CreateWidget:"listbox","scripts\optionsFrame.sc2","optionsFrame, ,500,500,0,0,0,arialBig.ft2,0","0,0";
show;


/**********************************************************/
<function=show>
ShowWidget:showMain;
ShowCursor:showMain;
ShowSubWidget:"optionsFrame",false;

/**********************************************************/
<Update>
if(IsKeyPressed:"@esc",1)
{
if(IsEqual:showMain,true & IsEqual:loaded,true)
{
SetVar:$showMain,false;
EngineResume;
show;
}
else
{
SetVar:$showMain,true;
EnginePause;
show;
}
}


/***********************************************************/
<Message>
if(Message:"pushed" & IsEqual:sender,"exit")
{
Exit;
}

if(Message:"pushed" & IsEqual:sender,"level0")
{
CloseLevel;
LoadLevel: "scenes/FPSDemo.s2";
SetVar: $loaded,true;
SetVar: $showMain,false;
ResetSubWidgetFlags: "close","w_grayed";
SetSubWidgetFlags: "level0","w_grayed";
show;
EngineResume;
}

if(Message:"pushed" & IsEqual:sender,"option")
{
ShowWidget: false;
ShowSubWidget: "optionsFrame",true;
}

if(Message:"pushed" & IsEqual:sender,"close")
{
CloseLevel;
LoadLevel: "scenes/FPSmenu.s2";
SetSubWidgetFlags: "close","w_grayed";
ResetSubWidgetFlags: "level0","w_grayed";
SetVar: $loaded,false;
EngineResume;
}