popravek zombijo
This commit is contained in:
@@ -571,6 +571,49 @@ class TextureGenerator {
|
||||
ctx.lineTo(32, 40);
|
||||
ctx.fill();
|
||||
|
||||
} else if (type === 'market') {
|
||||
// Market Stall
|
||||
// Wooden base
|
||||
ctx.fillStyle = '#8B4513';
|
||||
ctx.fillRect(4, 30, 56, 34); // Big base
|
||||
|
||||
// Counter
|
||||
ctx.fillStyle = '#DEB887'; // Burlywood
|
||||
ctx.fillRect(0, 40, 64, 10);
|
||||
|
||||
// Posts
|
||||
ctx.fillStyle = '#5C4033';
|
||||
ctx.fillRect(4, 10, 4, 30);
|
||||
ctx.fillRect(56, 10, 4, 30);
|
||||
|
||||
// Striped Roof
|
||||
ctx.fillStyle = '#FF0000'; // Red
|
||||
ctx.beginPath();
|
||||
ctx.moveTo(32, 0);
|
||||
ctx.lineTo(64, 15);
|
||||
ctx.lineTo(0, 15);
|
||||
ctx.fill();
|
||||
|
||||
// White stripes
|
||||
ctx.fillStyle = '#FFFFFF';
|
||||
ctx.beginPath();
|
||||
ctx.moveTo(32, 0);
|
||||
ctx.lineTo(40, 15);
|
||||
ctx.lineTo(32, 15);
|
||||
ctx.fill();
|
||||
|
||||
ctx.beginPath();
|
||||
ctx.moveTo(32, 0);
|
||||
ctx.lineTo(24, 15);
|
||||
ctx.lineTo(16, 15);
|
||||
ctx.fill();
|
||||
|
||||
// Goods (Apples/Items)
|
||||
ctx.fillStyle = '#00FF00';
|
||||
ctx.beginPath(); ctx.arc(10, 38, 4, 0, Math.PI * 2); ctx.fill();
|
||||
ctx.fillStyle = '#FF0000';
|
||||
ctx.beginPath(); ctx.arc(20, 38, 4, 0, Math.PI * 2); ctx.fill();
|
||||
|
||||
} else if (type === 'ruin') {
|
||||
// Isometric Ruin
|
||||
|
||||
@@ -922,5 +965,29 @@ class TextureGenerator {
|
||||
|
||||
canvas.refresh();
|
||||
}
|
||||
|
||||
// 7. BONE
|
||||
if (!scene.textures.exists('item_bone')) {
|
||||
const size = 32;
|
||||
const canvas = scene.textures.createCanvas('item_bone', size, size);
|
||||
const ctx = canvas.getContext();
|
||||
ctx.clearRect(0, 0, size, size);
|
||||
|
||||
// Bone shape
|
||||
ctx.strokeStyle = '#E8E8E8'; // Off-white
|
||||
ctx.lineWidth = 6;
|
||||
ctx.lineCap = 'round';
|
||||
ctx.beginPath();
|
||||
ctx.moveTo(10, 10);
|
||||
ctx.lineTo(22, 22);
|
||||
ctx.stroke();
|
||||
|
||||
// Knobs
|
||||
ctx.fillStyle = '#E8E8E8';
|
||||
ctx.beginPath(); ctx.arc(10, 10, 4, 0, Math.PI * 2); ctx.fill();
|
||||
ctx.beginPath(); ctx.arc(22, 22, 4, 0, Math.PI * 2); ctx.fill();
|
||||
|
||||
canvas.refresh();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user