-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
uxUser experience, design, usability, and UIUser experience, design, usability, and UI
Milestone
Description
For testing purposes only (since no map is currently developed), implement gamepad's vibration when player reaches borders of the down:
const pad = this.input.gamepad.getPad(0);
if (pad && pad.vibration && pad.vibration.playEffect) {
pad.vibration.playEffect('dual-rumble', {
startDelay: 0,
duration: 200,
weakMagnitude: 0.5,
strongMagnitude: 1.0
});
}
This uses core Phaser 3 support for game controllers, not the Merged Input Plugin (#22).
This is broken in Firefox and not supported at all in Safari, so can be tested in Edge and Chrome only.
Metadata
Metadata
Assignees
Labels
uxUser experience, design, usability, and UIUser experience, design, usability, and UI
Type
Projects
Status
Backlog