; Debug World Editor - live workflow ; Run this complete sample as an Extended debug program. Graphics3D 960,540,0,2 SetBuffer BackBuffer() camera=CreateCamera() PositionEntity camera,0,4,-10 RotateEntity camera,12,0,0 sun=CreateLight(1) RotateEntity sun,35,-35,0 AmbientLight 45,55,70 root=CreatePivot() NameEntity root,"Demo group" For index=0 To 5 cube=CreateCube(root) NameEntity cube,"Cube "+(index+1) PositionEntity cube,(index Mod 3)*2.5-2.5,(index/3)*2.5,0 EntityColor cube,70+index*25,150,240-index*20 Next ; False opens the editor for observation without stopping the program. ; Use the editor's Pause button whenever you want to make changes. DebugWorld GetWorld(),False While Not KeyDown(1) TurnEntity root,0,0.25,0 RenderWorld Text 20,20,"DebugWorld observation mode: the editor is following this live scene" Text 20,42,"Press Escape to exit" Flip Wend End