Add pirate-themed language throughout game
Ship Deck Scene: - "Yer Whaling Vessel" instead of "The Whaling Vessel" - "Ahoy, matey!" welcome message - Pirate expressions in barrel messages (Arr!, Aye!, fer, yer) - "ye scurvy dog" in instructions - "savvy?" in penguin messages Intro Scene: - "A Whaling Adventure on the High Seas" - "SET SAIL" button instead of "START GAME" - "Cast off and seek yer fortune!" instructions 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -26,7 +26,7 @@ export default class IntroScene extends Phaser.Scene {
|
|||||||
title.setStroke('#000000', 3);
|
title.setStroke('#000000', 3);
|
||||||
|
|
||||||
// Subtitle
|
// Subtitle
|
||||||
this.add.text(400, 210, 'An 18th Century Whaling Voyage', {
|
this.add.text(400, 210, 'A Whaling Adventure on the High Seas', {
|
||||||
fontSize: '22px',
|
fontSize: '22px',
|
||||||
fill: '#cccccc',
|
fill: '#cccccc',
|
||||||
fontStyle: 'italic'
|
fontStyle: 'italic'
|
||||||
@@ -42,7 +42,7 @@ export default class IntroScene extends Phaser.Scene {
|
|||||||
buttonBg.setStrokeStyle(3, 0xffffff);
|
buttonBg.setStrokeStyle(3, 0xffffff);
|
||||||
buttonBg.setInteractive({ useHandCursor: true });
|
buttonBg.setInteractive({ useHandCursor: true });
|
||||||
|
|
||||||
const buttonText = this.add.text(400, 400, 'START GAME', {
|
const buttonText = this.add.text(400, 400, 'SET SAIL', {
|
||||||
fontSize: '28px',
|
fontSize: '28px',
|
||||||
fill: '#ffffff',
|
fill: '#ffffff',
|
||||||
fontStyle: 'bold'
|
fontStyle: 'bold'
|
||||||
@@ -63,7 +63,7 @@ export default class IntroScene extends Phaser.Scene {
|
|||||||
});
|
});
|
||||||
|
|
||||||
// Instructions text
|
// Instructions text
|
||||||
this.add.text(400, 530, 'Click to begin your adventure', {
|
this.add.text(400, 530, 'Click to cast off and seek yer fortune!', {
|
||||||
fontSize: '16px',
|
fontSize: '16px',
|
||||||
fill: '#ffff99'
|
fill: '#ffff99'
|
||||||
}).setOrigin(0.5);
|
}).setOrigin(0.5);
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ export default class ShipDeckScene extends Phaser.Scene {
|
|||||||
create() {
|
create() {
|
||||||
// Background - ship deck
|
// Background - ship deck
|
||||||
this.add.rectangle(400, 300, 800, 600, 0x8B4513);
|
this.add.rectangle(400, 300, 800, 600, 0x8B4513);
|
||||||
this.add.text(400, 30, 'Ship Deck - The Whaling Vessel', {
|
this.add.text(400, 30, 'The Deck - Yer Whaling Vessel', {
|
||||||
fontSize: '24px',
|
fontSize: '24px',
|
||||||
fill: '#fff'
|
fill: '#fff'
|
||||||
}).setOrigin(0.5);
|
}).setOrigin(0.5);
|
||||||
@@ -33,7 +33,7 @@ export default class ShipDeckScene extends Phaser.Scene {
|
|||||||
this.createMessageBox();
|
this.createMessageBox();
|
||||||
|
|
||||||
// Instructions
|
// Instructions
|
||||||
this.add.text(400, 560, 'Click on objects to interact', {
|
this.add.text(400, 560, 'Click on things to have a look, ye scurvy dog', {
|
||||||
fontSize: '16px',
|
fontSize: '16px',
|
||||||
fill: '#ffff99'
|
fill: '#ffff99'
|
||||||
}).setOrigin(0.5);
|
}).setOrigin(0.5);
|
||||||
@@ -95,9 +95,9 @@ export default class ShipDeckScene extends Phaser.Scene {
|
|||||||
|
|
||||||
this.penguinCage.on('pointerdown', () => {
|
this.penguinCage.on('pointerdown', () => {
|
||||||
if (this.inventory.penguins > 0) {
|
if (this.inventory.penguins > 0) {
|
||||||
this.showMessage(`${this.inventory.penguins} penguins. They're... emergency fuel. Dark times call for dark measures.`);
|
this.showMessage(`Arr, ${this.inventory.penguins} penguins in the hold. Emergency fuel, they be. Desperate times call fer desperate measures, savvy?`);
|
||||||
} else {
|
} else {
|
||||||
this.showMessage('Empty penguin cage. Should we catch some for... fuel?');
|
this.showMessage(`Empty penguin cage, aye. Should we be catchin' some fer... fuel?`);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -159,7 +159,7 @@ export default class ShipDeckScene extends Phaser.Scene {
|
|||||||
const interactiveZone = this.add.rectangle(zoneX, zoneY, zoneWidth, zoneHeight, 0x000000, 0);
|
const interactiveZone = this.add.rectangle(zoneX, zoneY, zoneWidth, zoneHeight, 0x000000, 0);
|
||||||
interactiveZone.setInteractive({ useHandCursor: true });
|
interactiveZone.setInteractive({ useHandCursor: true });
|
||||||
interactiveZone.on('pointerdown', () => {
|
interactiveZone.on('pointerdown', () => {
|
||||||
this.showMessage(`Fuel supply: ${barrelCount} barrels (${this.inventory.fuel} units). Needed for boiling down whale blubber.`);
|
this.showMessage(`Arr! ${barrelCount} barrels of fuel (${this.inventory.fuel} units) fer boilin' down the blubber, aye!`);
|
||||||
});
|
});
|
||||||
this.fuelBarrels.push(interactiveZone);
|
this.fuelBarrels.push(interactiveZone);
|
||||||
}
|
}
|
||||||
@@ -217,7 +217,7 @@ export default class ShipDeckScene extends Phaser.Scene {
|
|||||||
const interactiveZone = this.add.rectangle(zoneX, zoneY, zoneWidth, zoneHeight, 0x000000, 0);
|
const interactiveZone = this.add.rectangle(zoneX, zoneY, zoneWidth, zoneHeight, 0x000000, 0);
|
||||||
interactiveZone.setInteractive({ useHandCursor: true });
|
interactiveZone.setInteractive({ useHandCursor: true });
|
||||||
interactiveZone.on('pointerdown', () => {
|
interactiveZone.on('pointerdown', () => {
|
||||||
this.showMessage(`Whale oil: ${barrelCount} barrels (${this.inventory.whaleOil} units). Your precious cargo!`);
|
this.showMessage(`Aye! ${barrelCount} barrels of whale oil (${this.inventory.whaleOil} units). Yer precious cargo, worth its weight in gold!`);
|
||||||
});
|
});
|
||||||
this.oilBarrels.push(interactiveZone);
|
this.oilBarrels.push(interactiveZone);
|
||||||
}
|
}
|
||||||
@@ -299,7 +299,7 @@ export default class ShipDeckScene extends Phaser.Scene {
|
|||||||
this.messageBox = this.add.rectangle(400, 500, 760, 80, 0x000000, 0.8);
|
this.messageBox = this.add.rectangle(400, 500, 760, 80, 0x000000, 0.8);
|
||||||
this.messageBox.setStrokeStyle(2, 0xcccccc);
|
this.messageBox.setStrokeStyle(2, 0xcccccc);
|
||||||
|
|
||||||
this.messageText = this.add.text(400, 500, 'Welcome aboard! Click around to explore the ship.', {
|
this.messageText = this.add.text(400, 500, 'Ahoy, matey! Welcome aboard. Have a look around the vessel.', {
|
||||||
fontSize: '16px',
|
fontSize: '16px',
|
||||||
fill: '#fff',
|
fill: '#fff',
|
||||||
wordWrap: { width: 740 },
|
wordWrap: { width: 740 },
|
||||||
|
|||||||
Reference in New Issue
Block a user