Outils pour utilisateurs

Outils du site


playground:template

00-Template.sb

00-Template.sb
;Babylon.sbi - Template minimum
 
EnableExplicit
 
IncludeFile "babylon/babylon.sbi"
 
Global Scene, Camera
 
Declare LoadGame()
Declare RenderGame()
 
UseModule BJS
InitEngine(@LoadGame())
 
Procedure LoadGame()    
  Scene = CreateScene()
  If Scene
    Camera = CreateCamera("camera", 0, 10, 10, #BJS_Free)
 
    RenderLoop(@RenderGame())
  EndIf
EndProcedure
 
Procedure RenderGame()
  RenderWorld() 
EndProcedure
playground/template.txt · Dernière modification: 2018/01/08 21:01 de falsam