Skip to content

Iso coaster coop#337

Open
amilich wants to merge 1 commit intomainfrom
cursor/iso-coaster-coop-1740
Open

Iso coaster coop#337
amilich wants to merge 1 commit intomainfrom
cursor/iso-coaster-coop-1740

Conversation

@amilich
Copy link
Owner

@amilich amilich commented Jan 24, 2026

This pull request contains changes generated by a Cursor Cloud Agent

Open in Cursor Open in Web


Note

Adds co-op multiplayer support to IsoCoaster, including a dedicated /coaster/coop/[roomCode] entry page and a CoopModal flow from the coaster landing page (with saved parks able to resume into their associated room).

Introduces park invite/sharing UX in-game via CoasterShareModal, a new useCoasterMultiplayerSync hook that periodically broadcasts/loads fullState, and TopBar/Sidebar indicators/actions for co-op sessions.

Generalizes multiplayer plumbing across IsoCity + IsoCoaster by defining a shared MultiplayerState union, updating MultiplayerContext, Supabase provider/DB functions, and CoopModal to accept game-specific labels/paths and state creation/name-application. Saved coaster metadata now stores optional roomCode.

High Risk. Touches core multiplayer state types and Supabase persistence paths, and adds periodic full-state sync for co-op sessions; regressions could affect existing IsoCity co-op behavior and state loading/saving.

Written by Cursor Bugbot for commit e9fbdc0. This will update automatically on new commits. Configure here.

Co-authored-by: andrew <andrew@anysphere.co>
@cursor
Copy link

cursor bot commented Jan 24, 2026

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

@vercel
Copy link
Contributor

vercel bot commented Jan 24, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
isometric-city Ready Ready Preview, Comment Jan 24, 2026 3:33am

Request Review

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

setStartFreshGame(true);
} else {
setStartFreshGame(true);
}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Redundant else-if branch in handleCoopStart

Low Severity · Code Quality

The handleCoopStart function has redundant conditional branches where both the else if (isHost) and else cases execute identical code (setStartFreshGame(true)). This suggests the else if check is unnecessary and should be simplified to a single else branch.

Additional Locations (1)

Fix in Cursor Fix in Web

@locadex-agent
Copy link
Contributor

locadex-agent bot commented Jan 24, 2026

Localization Complete! ✅

This PR has been successfully localized!
See #340 for the changes.

📋 Summary

Locadex has analyzed your changes and automatically localized your translatable content.
The localization changes have been automatically generated on a new branch. See #340 for the changes.

Files internationalized (10)
  • src/app/coaster/coop/[roomCode]/page.tsx: Added i18n code
  • src/app/coaster/page.tsx: Added i18n code
  • src/app/page.tsx: Added i18n code
  • src/components/coaster/Game.tsx: Added i18n code
  • src/components/coaster/Sidebar.tsx: Added i18n code
  • src/components/coaster/TopBar.tsx: Added i18n code
  • src/components/multiplayer/CoasterShareModal.tsx: Added i18n code
  • src/components/multiplayer/CoopModal.tsx: Added i18n code
  • src/context/CoasterContext.tsx: Added i18n code
  • src/lib/multiplayer/supabaseProvider.ts: Added i18n code
Translation files updated (8)
  • 🇩🇪 public/_gt/de.json: Updated translation file
  • 🇪🇸 public/_gt/es.json: Updated translation file
  • 🇫🇷 public/_gt/fr.json: Updated translation file
  • 🇮🇹 public/_gt/it.json: Updated translation file
  • 🇯🇵 public/_gt/ja.json: Updated translation file
  • 🇧🇷 public/_gt/pt-BR.json: Updated translation file
  • 🇹🇷 public/_gt/tr.json: Updated translation file
  • 🇨🇳 public/_gt/zh.json: Updated translation file
Configuration files updated (2)
  • gt-lock.json: Updated the translation lockfile to add the latest changes
  • gt.config.json: Updated configuration with latest versionId

🔗 What happened?

  • 🔍 Analyzed your code changes for translatable content
  • 🔨 Internationalized your code changes
  • 🌐 Generated translations for supported languages
  • 🎉 Added localization commits directly to this PR

Localization completed by Locadex in 942 seconds.

General Translation | Configure Locadex for iso-city

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