Art: Made all trees 40% smaller + apple tree simple 2D flat style
This commit is contained in:
@@ -684,7 +684,7 @@ class Flat2DTerrainSystem {
|
||||
// 🌸 PNG SPRITE!
|
||||
if (this.scene.textures.exists('tree_cherry')) {
|
||||
const tree = this.scene.add.image(x, y, 'tree_cherry');
|
||||
const scale = Phaser.Math.FloatBetween(0.4, 0.6); // SMALLER! (was 0.8-1.2)
|
||||
const scale = Phaser.Math.FloatBetween(0.25, 0.4); // Even SMALLER! (was 0.8-1.2)
|
||||
tree.setScale(scale);
|
||||
tree.setOrigin(0.5, 0.85);
|
||||
|
||||
@@ -749,7 +749,7 @@ class Flat2DTerrainSystem {
|
||||
// 🌲 PNG SPRITE!
|
||||
if (this.scene.textures.exists('tree_oak')) {
|
||||
const tree = this.scene.add.image(x, y, 'tree_oak');
|
||||
const scale = Phaser.Math.FloatBetween(0.45, 0.65); // SMALLER!
|
||||
const scale = Phaser.Math.FloatBetween(0.28, 0.42); // Even SMALLER!
|
||||
tree.setScale(scale);
|
||||
tree.setOrigin(0.5, 0.85);
|
||||
const shadow = this.scene.add.ellipse(x, y + 15, 35 * scale, 12, 0x000000, 0.2);
|
||||
@@ -788,7 +788,7 @@ class Flat2DTerrainSystem {
|
||||
// 🌲 PNG SPRITE!
|
||||
if (this.scene.textures.exists('tree_pine')) {
|
||||
const tree = this.scene.add.image(x, y, 'tree_pine');
|
||||
const scale = Phaser.Math.FloatBetween(0.45, 0.7); // SMALLER!
|
||||
const scale = Phaser.Math.FloatBetween(0.28, 0.45); // Even SMALLER!
|
||||
tree.setScale(scale);
|
||||
tree.setOrigin(0.5, 0.9); // Taller
|
||||
const shadow = this.scene.add.ellipse(x, y + 20, 30 * scale, 10, 0x000000, 0.2);
|
||||
@@ -872,44 +872,37 @@ class Flat2DTerrainSystem {
|
||||
}
|
||||
|
||||
createAppleTree(x, y) {
|
||||
// 🍎 PNG SPRITE!
|
||||
if (this.scene.textures.exists('tree_apple')) {
|
||||
const tree = this.scene.add.image(x, y, 'tree_apple');
|
||||
const scale = Phaser.Math.FloatBetween(0.4, 0.6); // SMALLER!
|
||||
tree.setScale(scale);
|
||||
tree.setOrigin(0.5, 0.85);
|
||||
const shadow = this.scene.add.ellipse(x, y + 16, 32 * scale, 11, 0x000000, 0.2);
|
||||
shadow.setDepth(tree.depth - 1);
|
||||
return tree;
|
||||
}
|
||||
|
||||
// FALLBACK:
|
||||
// 🍎 2D FLAT STYLE - Smaller and simpler!
|
||||
const graphics = this.scene.add.graphics();
|
||||
const growthScale = Phaser.Math.FloatBetween(0.8, 1.3); // BIGGER!
|
||||
const scale = 0.6; // Much smaller!
|
||||
|
||||
// Shadow
|
||||
graphics.fillStyle(0x000000, 0.15);
|
||||
graphics.fillEllipse(x, y + 22, 22 * growthScale, 7);
|
||||
graphics.fillEllipse(x, y + 14, 18 * scale, 6);
|
||||
|
||||
// Trunk
|
||||
graphics.fillStyle(0x8B4513);
|
||||
graphics.fillRect(x - 4 * growthScale, y + 2, 8 * growthScale, 20 * growthScale);
|
||||
// Trunk (simple rectangle)
|
||||
graphics.fillStyle(0x6d4c41); // Brown
|
||||
graphics.fillRect(x - 3 * scale, y - 2, 6 * scale, 16 * scale);
|
||||
|
||||
// Green crown
|
||||
graphics.fillStyle(0x3CB371); // Medium sea green
|
||||
graphics.fillCircle(x, y - 8 * growthScale, 16 * growthScale);
|
||||
// Crown - simple rounded shape (2D style!)
|
||||
graphics.fillStyle(0x4a9d5f); // Green
|
||||
graphics.fillCircle(x, y - 10 * scale, 12 * scale);
|
||||
|
||||
// Apples (red circles)
|
||||
graphics.fillStyle(0xFF0000);
|
||||
const applePositions = [
|
||||
{ x: -8, y: -12 }, { x: 5, y: -10 }, { x: -3, y: -5 },
|
||||
{ x: 8, y: -8 }, { x: 0, y: -15 }
|
||||
// Secondary crown circles for volume (Stardew style)
|
||||
graphics.fillCircle(x - 6 * scale, y - 8 * scale, 9 * scale);
|
||||
graphics.fillCircle(x + 6 * scale, y - 8 * scale, 9 * scale);
|
||||
|
||||
// Apples (simple red dots)
|
||||
graphics.fillStyle(0xFF3333);
|
||||
const apples = [
|
||||
{ x: -5, y: -12 }, { x: 4, y: -10 },
|
||||
{ x: 0, y: -8 }, { x: 6, y: -9 }
|
||||
];
|
||||
applePositions.forEach(pos => {
|
||||
apples.forEach(pos => {
|
||||
graphics.fillCircle(
|
||||
x + pos.x * growthScale,
|
||||
y + pos.y * growthScale,
|
||||
3 * growthScale
|
||||
x + pos.x * scale,
|
||||
y + pos.y * scale,
|
||||
2.5 * scale
|
||||
);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user