Skip to main content

In Three.js

In this example you will learn how to use parts of emulators-ui with three.js renderer. We will create a rotating cube with a digger game.

Result

First you need to add emulators.js and emulators-ui.js:

<script src="emulators/emulators.js"></script>
<script src="emulators-ui/emulators-ui.js"></script>
<script>
emulators.pathPrefix = "emulators/";

Complete example:

examples/threejs.html
Run
{}