mylingo3d
Version:
Lingo3D is a React/Vue 3d game development framework that ships with a complete visual editor
34 lines • 885 B
JavaScript
import { createMachine } from "xstate";
export default createMachine({
predictableActionArguments: true,
states: {
idle: {
on: {
RUN_START: "running",
RUN_BACKWARDS_START: "runningBackwards",
JUMP_START: "jumping"
}
},
running: {
on: {
RUN_STOP: "idle",
RUN_BACKWARDS_START: "runningBackwards",
JUMP_START: "jumping"
}
},
runningBackwards: {
on: {
RUN_STOP: "idle",
RUN_START: "running",
JUMP_START: "jumping"
}
},
jumping: {
on: {
JUMP_STOP: "idle"
}
}
},
initial: "idle"
});
//# sourceMappingURL=poseMachine.js.map