Increase ocean sway for more dramatic movement
- Increased horizontal camera sway from 8px to 25px - Increased vertical camera sway from 5px to 18px - Creates much more challenging hunting conditions - Simulates rougher seas 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -506,8 +506,8 @@ export default class HuntingScene extends Phaser.Scene {
|
|||||||
this.cameraTime += 0.01;
|
this.cameraTime += 0.01;
|
||||||
|
|
||||||
// Smooth sine wave movement for natural ocean sway
|
// Smooth sine wave movement for natural ocean sway
|
||||||
const swayX = Math.sin(this.cameraTime) * 8; // 8 pixels horizontal sway
|
const swayX = Math.sin(this.cameraTime) * 25; // 25 pixels horizontal sway
|
||||||
const swayY = Math.cos(this.cameraTime * 0.6) * 5; // 5 pixels vertical sway
|
const swayY = Math.cos(this.cameraTime * 0.6) * 18; // 18 pixels vertical sway
|
||||||
|
|
||||||
// Apply to camera scroll
|
// Apply to camera scroll
|
||||||
this.cameras.main.scrollX = swayX;
|
this.cameras.main.scrollX = swayX;
|
||||||
|
|||||||
Reference in New Issue
Block a user