good start, OWI.
turn shadows on to give perspective on the towers/spheres? something like:
SetWindowSize( 1280,720, 0 )
SetWindowAllowResize( 1 )
// set display properties
SetVirtualResolution( 1280,720)
SetOrientationAllowed( 1, 1, 1, 1 )
SetSyncRate( 30, 0 )
SetScissor( 0,0,0,0 )
UseNewDefaultFonts( 1 )
SetShadowMappingMode( 3 )
SetShadowSmoothing( 2 )
SetShadowMapSize( 1024, 1024 )
SetShadowRange( 1000)
SetSunDirection(0,-1,0)
this = CreateObjectBox(100,10,100) : SetObjectColor(this,0,255,0,255)
SetObjectReceiveShadow(this,1)
SetObjectPosition(this,55,0,55)
map as integer [10,10]
for x = 1 to 4
this = CreateObjectSphere(8,10,10) : SetObjectColor(this,255,255,0,255)
repeat
a = random(1,10) : b = random(1,10)
until map[a,b] = 0
map[a,b] = this
SetObjectPosition(this,a*10,15,b*10)
SetObjectCastShadow(this,1)
SetObjectColor(this,255,255,0,255)
next x
SetCameraPosition(1,50,100,-50) : SetCameraLookAt(1,50,0,50,0)
do
If GetRawKeyState(27) then Exit
Print( ScreenFPS() )
Sync()
loop
otherwise, see
Lights and Shadows