Guides

Mobile Adaptations

Build mobile-first interactive HTML5 experiences optimized for mobile webviews.

Responsive Layouts & Viewport

Ensure your games are configured to fit within varying canvas limits by using absolute scaling. Set your viewport metadata:

index.html
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover">

Haptic Telemetry Feedback

Provide satisfying mechanical clicks during touch inputs by utilizing Boofer's native haptics engine:

// Simple click feedback
canvas.addEventListener('touchstart', () => {
  Boofer.triggerHaptic('light');
});