🎨 Style 30 Tiles Integration - World Background Complete!
Generated and integrated Style 30 tiles for demo scene: ✅ Grass tile (64x64) - Style 30 with gradients ✅ Dirt tile (64x64) - Style 30 tilled soil ✅ Tent sprite - Style 30 camping tent Changes: - Generated 3 new Style 30 assets (grass, dirt, tent) - Updated DemoSceneEnhanced.js preload to load tiles - Replaced placeholder graphics with real tiled background - Grass tiles fill entire world (2000x2000) - Dirt tiles create farm plot (proper tilling texture) - Tent sprite replaces placeholder rectangle Visual improvements: - Consistent Style 30 aesthetic throughout demo - Matches wheat/plant style (gradients, medium brown outline) - Professional tiled background - Cozy farming game aesthetic Ready for final testing! 🎮
This commit is contained in:
@@ -62,6 +62,11 @@ class DemoSceneEnhanced extends Phaser.Scene {
|
||||
// Zombie sprite
|
||||
this.load.image('zombie_idle', 'assets/slike 🟢/animations 🟢/zombies/base/zombie_basic_idle_1_1767359653518.png');
|
||||
|
||||
// World tiles (Style 30!)
|
||||
this.load.image('grass_tile', 'assets/slike 🟢/demo 🔴/tiles/grass_tile.png');
|
||||
this.load.image('dirt_tile', 'assets/slike 🟢/demo 🔴/tiles/dirt_tile.png');
|
||||
this.load.image('tent', 'assets/slike 🟢/demo 🔴/biomi 🔴/buildings/tent.png');
|
||||
|
||||
console.log('✅ All assets loaded!');
|
||||
}
|
||||
|
||||
@@ -141,38 +146,44 @@ class DemoSceneEnhanced extends Phaser.Scene {
|
||||
}
|
||||
|
||||
createWorld() {
|
||||
const graphics = this.add.graphics();
|
||||
// Create grass background with REAL tiles (Style 30!)
|
||||
const tileSize = 64;
|
||||
const worldWidth = 2000;
|
||||
const worldHeight = 2000;
|
||||
|
||||
// Grass
|
||||
graphics.fillStyle(0x7cfc00, 1);
|
||||
graphics.fillRect(0, 0, 2000, 2000);
|
||||
|
||||
// Farm plot (tilled soil)
|
||||
graphics.fillStyle(0x8B4513, 1);
|
||||
for (let x = 3; x < 13; x++) {
|
||||
for (let y = 3; y < 8; y++) {
|
||||
graphics.fillRect(x * 64, y * 64, 64, 64);
|
||||
// Grass tiles (background)
|
||||
for (let x = 0; x < worldWidth; x += tileSize) {
|
||||
for (let y = 0; y < worldHeight; y += tileSize) {
|
||||
this.add.image(x + tileSize / 2, y + tileSize / 2, 'grass_tile').setDepth(-2);
|
||||
}
|
||||
}
|
||||
|
||||
// Tent area
|
||||
graphics.fillStyle(0xCD853F, 1);
|
||||
graphics.fillRect(800, 300, 200, 150);
|
||||
// Farm plot with dirt tiles (tilled soil)
|
||||
for (let x = 3; x < 13; x++) {
|
||||
for (let y = 3; y < 8; y++) {
|
||||
this.add.image(x * 64 + 32, y * 64 + 32, 'dirt_tile').setDepth(-1);
|
||||
}
|
||||
}
|
||||
|
||||
// Tent sprite (REAL Style 30 sprite!)
|
||||
this.add.image(900, 375, 'tent').setScale(1.2).setDepth(10);
|
||||
|
||||
// Add text labels
|
||||
this.add.text(850, 250, 'TENT', {
|
||||
this.add.text(900, 290, 'TENT', {
|
||||
fontSize: '24px',
|
||||
color: '#ffffff',
|
||||
backgroundColor: '#000000',
|
||||
padding: { x: 10, y: 5 }
|
||||
}).setOrigin(0.5);
|
||||
}).setOrigin(0.5).setDepth(100);
|
||||
|
||||
this.add.text(400, 200, 'FARM PLOT', {
|
||||
this.add.text(500, 200, 'FARM PLOT', {
|
||||
fontSize: '20px',
|
||||
color: '#ffffff',
|
||||
backgroundColor: '#000000',
|
||||
padding: { x: 8, y: 4 }
|
||||
}).setOrigin(0.5);
|
||||
}).setOrigin(0.5).setDepth(100);
|
||||
|
||||
console.log('✅ World created with Style 30 tiles!');
|
||||
}
|
||||
|
||||
createPlayer() {
|
||||
|
||||
Reference in New Issue
Block a user