Advertisement
Guest User

index.js

a guest
May 27th, 2019
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import * as BABYLON from "@babylonjs/core/Legacy/legacy"
  2. import "@babylonjs/core/Meshes/meshBuilder"
  3. import { _BabylonLoaderRegistered, BoundingBox, RotationGizmo } from "@babylonjs/core/Legacy/legacy"
  4. import "@babylonjs/loaders/OBJ";
  5. import Engine from "./engine";
  6. import Character from "./character";
  7.  
  8.  
  9.  
  10. let game, player;
  11.  
  12. function main(){    
  13.     game = new Engine();
  14.     player = new Character(game);
  15.     game.assetManager();
  16.     game.pointerLock();
  17.     player.characterController();    
  18.     game.render();
  19. }
  20.  
  21. main();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement