; DiagnosticMessage Example ; ------------------------- ; Requires Extended mode. Graphics3D 640,480,0,2 SetBuffer BackBuffer() camera=CreateCamera() PositionEntity camera,0,1,-6 light=CreateLight() RotateEntity light,45,45,0 pad=CreateCylinder() ScaleEntity pad,1.5,0.1,1.5 EntityColor pad,80,200,255 ; Two failed asset loads seed the diagnostic store with records to browse enemy=LoadMesh("enemy_model.glb") powerup=LoadMesh("powerup_model.glb") index=1 While Not KeyDown(1) ; Space adds another failure, [ and ] browse the records If KeyHit(57) Then crate=LoadMesh("crate_model.glb") If KeyHit(26) And index>1 Then index=index-1 If KeyHit(27) And index