Skip to content

Implement full-screen touch joystick and fullscreen toggle#12

Open
Copilot wants to merge 13 commits intomainfrom
copilot/adapt-site-for-smartphone
Open

Implement full-screen touch joystick and fullscreen toggle#12
Copilot wants to merge 13 commits intomainfrom
copilot/adapt-site-for-smartphone

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Feb 10, 2026

Mobile users needed screen-wide touch control for ship movement and fullscreen capability.

Changes

Full-Screen Joystick

  • Touch area: Changed from fixed 150px joystick to entire gameContainer
  • Dynamic positioning: Joystick center now set to touch coordinates, not bottom-left corner
  • Visual feedback: Joystick renders at touch point with opacity fade (0→1 on touch, 1→0 on release)
  • UI protection: Touch events filtered to exclude .touch-pause-button, .touch-fullscreen-button, and menu overlays
// Before: Limited touch area
this.joystick.addEventListener('touchstart', (e) => { ... });

// After: Full-screen control
gameContainer.addEventListener('touchstart', (e) => {
  if (target.closest('.touch-pause-button') || ...) return;
  this.handleJoystickStart(touch);
});

Fullscreen Button

  • API: Cross-browser fullscreen with vendor prefixes (standard/webkit/moz/ms)
  • UI: New button (⛶/⊗) positioned below pause button
  • State sync: Listens to fullscreenchange events to update icon

CSS Changes

  • Joystick: position: absoluteposition: fixed with dynamic left/top
  • Button z-index layering: joystick (100) < buttons (1000)

Screenshots

Portrait (375x667)
Menu with buttons

Gameplay
Active gameplay

Landscape (812x375)
Landscape mode


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 4 commits February 10, 2026 08:28
Co-authored-by: Linkatplug <36280686+Linkatplug@users.noreply.github.com>
Co-authored-by: Linkatplug <36280686+Linkatplug@users.noreply.github.com>
Co-authored-by: Linkatplug <36280686+Linkatplug@users.noreply.github.com>
Co-authored-by: Linkatplug <36280686+Linkatplug@users.noreply.github.com>
Copilot AI changed the title [WIP] Update site for touchscreen usability on smartphones Add mobile touch controls with responsive canvas for portrait gameplay Feb 10, 2026
Copilot AI requested a review from Linkatplug February 10, 2026 08:36
Copilot AI and others added 2 commits February 10, 2026 09:27
Co-authored-by: Linkatplug <36280686+Linkatplug@users.noreply.github.com>
Co-authored-by: Linkatplug <36280686+Linkatplug@users.noreply.github.com>
Copilot AI changed the title Add mobile touch controls with responsive canvas for portrait gameplay Fix touch controls and fullscreen in landscape 16:9 mobile orientation Feb 10, 2026
@Linkatplug Linkatplug marked this pull request as ready for review February 10, 2026 09:34
@chatgpt-codex-connector
Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

Copilot AI and others added 2 commits February 11, 2026 13:11
Co-authored-by: Linkatplug <36280686+Linkatplug@users.noreply.github.com>
…e comments

Co-authored-by: Linkatplug <36280686+Linkatplug@users.noreply.github.com>
Copilot AI changed the title Fix touch controls and fullscreen in landscape 16:9 mobile orientation Implement full-screen touch joystick and fullscreen toggle Feb 11, 2026
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.

2 participants