mylingo3d
Version:
Lingo3D is a React/Vue 3d game development framework that ships with a complete visual editor
13 lines • 366 B
JavaScript
import Dummy from "../display/Dummy";
import Joystick from "../ui/Joystick";
const dummy = new Dummy();
const joystick = new Joystick();
joystick.onMove = e => {
dummy.strideForward = -e.y;
dummy.strideRight = e.x;
};
joystick.onMoveEnd = () => {
dummy.strideForward = 0;
dummy.strideRight = 0;
};
//# sourceMappingURL=testJoystick.js.map