Skip to content

woleicom/babylon-getting-started

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

babylon-getting-started

Babylon.js (5.0版本) 入门教程示例代码

  • 启动:
npm run start
  • 打包:
npm run build
  • src/main.ts中切换想要看的章节对象即可

如:

import FirstSceneAndModel from './GettingStarted/Chapter1/firstSceneAndModel';
window.addEventListener("DOMContentLoaded", () => { 
  // 替换FirstSceneAndModel类即可
  let game = new FirstSceneAndModel('renderCanvas'); 
  game.init();
});

About

Babylon.js入门教程示例代码

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published