fix: whale stays longer (15s) and no pointer cursor
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -98,6 +98,7 @@ export default class DeepSeaHuntingScene extends Phaser.Scene {
|
|||||||
// Whale body (large deep sea whale)
|
// Whale body (large deep sea whale)
|
||||||
const body = this.add.ellipse(0, 0, 180, 70, 0x1a2a3a);
|
const body = this.add.ellipse(0, 0, 180, 70, 0x1a2a3a);
|
||||||
body.setStrokeStyle(2, 0x2a4a6a);
|
body.setStrokeStyle(2, 0x2a4a6a);
|
||||||
|
body.disableInteractive();
|
||||||
|
|
||||||
// Whale underbelly
|
// Whale underbelly
|
||||||
const belly = this.add.ellipse(0, 10, 140, 40, 0x2a3a4a);
|
const belly = this.add.ellipse(0, 10, 140, 40, 0x2a3a4a);
|
||||||
@@ -139,12 +140,12 @@ export default class DeepSeaHuntingScene extends Phaser.Scene {
|
|||||||
ease: 'Sine.inOut'
|
ease: 'Sine.inOut'
|
||||||
});
|
});
|
||||||
|
|
||||||
// Move whale from entry to exit over 5 seconds
|
// Move whale from entry to exit over 15 seconds
|
||||||
this.tweens.add({
|
this.tweens.add({
|
||||||
targets: whale,
|
targets: whale,
|
||||||
x: exit.x,
|
x: exit.x,
|
||||||
y: exit.y,
|
y: exit.y,
|
||||||
duration: 5000,
|
duration: 15000,
|
||||||
ease: 'Sine.inOut',
|
ease: 'Sine.inOut',
|
||||||
onComplete: () => {
|
onComplete: () => {
|
||||||
this.onWhaleExit(whale);
|
this.onWhaleExit(whale);
|
||||||
|
|||||||
Reference in New Issue
Block a user