posodobitev

This commit is contained in:
2025-12-11 19:36:08 +01:00
parent 5395f4abd2
commit 6e998d516d
36 changed files with 2045 additions and 304 deletions

View File

@@ -11,17 +11,60 @@ class StoryScene extends Phaser.Scene {
const bg = this.add.rectangle(0, 0, width, height, 0x0a0a0a);
bg.setOrigin(0);
// Title
// GLOW EFFECT for title (multiple Text objects)
const titleGlow1 = this.add.text(width / 2, 80, 'NOVAFARMA', {
fontSize: '72px',
fontFamily: 'Courier New',
color: '#00ff41',
fontStyle: 'bold'
});
titleGlow1.setOrigin(0.5);
titleGlow1.setAlpha(0.3);
titleGlow1.setScale(1.05);
const titleGlow2 = this.add.text(width / 2, 80, 'NOVAFARMA', {
fontSize: '72px',
fontFamily: 'Courier New',
color: '#00ff41',
fontStyle: 'bold'
});
titleGlow2.setOrigin(0.5);
titleGlow2.setAlpha(0.5);
titleGlow2.setScale(1.02);
// Main title
const title = this.add.text(width / 2, 80, 'NOVAFARMA', {
fontSize: '72px',
fontFamily: 'Courier New',
color: '#00ff41',
fontStyle: 'bold',
stroke: '#000000',
strokeThickness: 6
stroke: '#003311',
strokeThickness: 8
});
title.setOrigin(0.5);
// Pulsing glow animation
this.tweens.add({
targets: [titleGlow1, titleGlow2],
scaleX: 1.08,
scaleY: 1.08,
alpha: 0.6,
duration: 2000,
yoyo: true,
repeat: -1,
ease: 'Sine.easeInOut'
});
// Subtle title bounce
this.tweens.add({
targets: title,
y: 75,
duration: 3000,
yoyo: true,
repeat: -1,
ease: 'Sine.easeInOut'
});
// Subtitle
const subtitle = this.add.text(width / 2, 150, '2084 - Survival Farm', {
fontSize: '20px',