Skip to content

Conversation

@VoidZai
Copy link

@VoidZai VoidZai commented May 23, 2025

This PR adds support for touch input to the Flappy Bird game, enabling players on mobile devices to tap the screen to make the bird flap, similar to pressing the up arrow key on desktop.

Changes made:
Added a touchstart event listener on the canvas to trigger the bird’s flap.

Included a viewport meta tag in index.html to enable proper scaling on mobile devices.

Added basic CSS styles to center the canvas and improve mobile display aesthetics.

This improves playability on phones and tablets, providing a smoother mobile user experience.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant