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 : 2023/03/15 15:49 de 127.0.0.1