You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixed two critical issues with the ship riding implementation:
Issue #1: Ship not visible
- Replaced player sprite placeholder with proper ship graphics
- Ship now renders as a large brown rectangle with black outline
- Rectangle size matches deck boundary dimensions
- Ship uses centered origin (0.5, 0.5) for proper positioning
- Generated unique texture per ship from graphics
Issue #2: Player wanders off ship when controlling
- Added check to disable player movement when controllingShip is active
- Arrow keys only control ship (steering/sails), not player movement
- Player animation stops when controlling ship
- Player remains stationary on deck while operating controls
- Can still walk around when not actively controlling
Technical changes:
- Ship sprite created using Phaser.Graphics with fillRect/strokeRect
- Graphics converted to texture using generateTexture()
- Player movement code wrapped in !this.controllingShip check
- Player animation stops in else branch when controlling
Files Modified:
- clients/mew-world/src/game/GameScene.ts
Players can now:
- See the ship as a large brown platform
- Control ship without wandering off deck
- Walk on deck when not controlling
- Ride along smoothly as ship moves
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>
0 commit comments