Graphics3D 640,480,16,2
Const UPS=60
cam=CreateCamera()
l=CreateLight()
period=1000/UPS
time=MilliSecs()-period
Repeat
Repeat
elapsed=MilliSecs()-time
Until elapsed
ticks=elapsed/period
tween#=Float(elapsed Mod period)/Float(period)
For k=1 To ticks
time=time+period
If KeyHit(1) End
;Тут логика игры(цикл тут)
UpdateWorld
Next
RenderWorld tween
;Тут текст,графика...
Flip
Forever