whs
Version:
Super-fast 3D framework for Web Applications & Games. Based on Three.js
16 lines (12 loc) • 519 B
JavaScript
export const getTemplateData = ({devPhysics = false, devMode = false} = {devPhysics: false, devMode: false}) => ({
scriptname: 'script.js',
assets: '\'../../assets\'',
devMode,
physicsModule: !isNaN(Number(devPhysics))
? `http://localhost:${devPhysics}/physics-module.js`
: '../../assets/physics-module.js',
ammojs: !isNaN(Number(devPhysics))
? `'http://localhost:${devPhysics}/vendor/ammo.js'`
: 'window.location.href + \'../../assets/ammo.js\''
});
export const examples = '../examples';