Add whale hunting mini-game with crosshair mechanics
- Created HuntingScene with mouse and keyboard controls - Crosshair can be controlled by mouse or WASD/Arrow keys - TAB key toggles between control modes - Whales spawn and swim across screen from both directions - Harpoon shooting mechanic (click or SPACE) - Collision detection and whale hit animations - Whale oil rewards (+1 per successful hunt) - HUD displays fuel, oil, and whales hunted - Return to map button - Updated MapScene to transition to HuntingScene 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -159,12 +159,12 @@ export default class MapScene extends Phaser.Scene {
|
||||
this.showMessage('Not enough fuel to reach the hunting grounds! You need at least 20 units.');
|
||||
return;
|
||||
}
|
||||
// Go to transition scene, then to map (hunting scene not yet implemented)
|
||||
// Go to transition scene, then to hunting scene
|
||||
this.scene.start('TransitionScene', {
|
||||
inventory: this.inventory,
|
||||
destination: 'hunting',
|
||||
fuelCost: 20,
|
||||
nextScene: 'MapScene' // Will change to 'HuntingScene' when implemented
|
||||
nextScene: 'HuntingScene'
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user