Create Editor for SceneBundler. Scene can be easy created and deployed in site.
Using (vanillaJS)
Setup
Download last realese and use it
<scriptsrc="Bronze.min.js"></script>
Define engine
// Creating instance of enginevarengine=newBronze.Engine(canvas)// Creating camera for enginevarcamera=newBronze.Camera(engine)// You can also define controls object for control camera or objects.varcontrols=newBronze.Controls(engine)
Map building
// Create all texture filesvartexture=newBronze.Texture(engine)texture.setColor(159,136,105,255)// If engine draws before all resources loaded color will be showntexture.loadFrom("path/to/texture.png")// Creating instance of some objectvarobject=newBronze.Object(Engine)object.loadFromObj("path/to/object.obj")object.setTexture(texture)// We can transform himobject.setPosition(0,200,500)object.setRotation(0,90,45)object.scale(2,3,2)// Also we can set animation functionobject.animate(60,(obj)=>{obj.rotate(+1,0,0)if(!(obj.position.y==100)){obj.move(0,-10,0)}})
Development
# Install dependenciesyarn install
# Serve with hot reload at localhost:8080 yarn dev
# Production build with minification yarn run build
# Create docsyarn run build:docs