JemScript uses DarkGDK now!
// Standard JemScript Header
// -------------------------
function FreeObject()
{
var o = 1;
while ( ObjectExist( o ) )
{
o = o + 1;
}
return o;
}
function PrintArray( var arr[0] )
{
for ( var a = 0; a < ( sizeof( arr ) - 1 ); a = a + 1 )
{
print( arr[a] );
Sync();
}
}
function UpKey()
{
return KeyState( 200 );
}
function DownKey()
{
return KeyState( 208 );
}
function LeftKey()
{
return KeyState( 203 );
}
function RightKey()
{
return KeyState( 205 );
}
#include "Standard.jem"
function main()
{
var myobj = FreeObject();
MakeObjectCube( myobj, 100 );
var speed = 10;
var z = 0;
while ( true )
{
if ( UpKey() )
{
z = z + speed;
}
PositionObject( myobj, 0, 0, z );
Sync();
}
}
Don't you just hate that Zotoaster guy?