diff --git a/js/input.js b/js/input.js index 66ee9d0..3acb80f 100644 --- a/js/input.js +++ b/js/input.js @@ -128,6 +128,11 @@ function draw(x, y) { colorIndex: Math.floor(Math.random() * FIRE_COLORS.length) }); } + } + // Special handling for rabbits - create rabbit entity + else if (currentTool === RABBIT) { + createEntity(ENTITY_TYPES.RABBIT, pixelX, pixelY); + return; // Only create one rabbit per click } else { setPixel(pixelX, pixelY, currentTool);