Setup guid 0. drop all assets into public folder, example http://yourserver.com/assets/
- add scripts to your head file
-
specify in your html file where scene should run, add for example
, id=required 2.1 specify container width end height via css
.warrior-container { width: 100vw; height: 100vh; max-width: 500px; max-height: 300px; } -
after all scripts are loaded run
<script> window.InitWarrior("warrior-scene", { modelRoot: "/assets/", onOrder: function onOrder(data) => console.log(data.selected) }); </script>