#!/bin/bash # OVERNIGHT ASSET GENERATION - DolinaSmrti # Run this script and go to sleep - it will generate all assets automatically! echo "======================================================================" echo "🌙 OVERNIGHT GENERATION STARTING" echo "======================================================================" echo "" echo "This script will:" echo " 1. Generate HIGH PRIORITY buildings (tent→farmhouse progression)" echo " 2. Remove backgrounds automatically" echo " 3. Commit each asset to git" echo " 4. Wait 60 seconds between generations (API rate limit)" echo "" echo "You can SLEEP now - check results in the morning! ☕" echo "" echo "======================================================================" echo "" # Asset list (HIGH PRIORITY only) ASSETS=( "farmhouse_basic:complete small farmhouse building, basic two-story house with chimney, starter home" "blacksmith_shop_complete:complete blacksmith shop building, forge workshop with anvil and chimney, metalworking facility" "bakery_complete:complete bakery building, cozy bakery shop with oven and storefront, bread store" "clinic_complete:complete clinic building, medical facility with red cross, healthcare center" "greenhouse_complete:complete greenhouse building, glass structure for growing plants, botanical building" "workshop_complete:complete workshop building, craftsman work shed with tools visible, maker space" "windmill_complete:complete windmill building, tall wooden windmill with four rotating blades, grain processing" "watchtower:watchtower building, tall stone tower with lookout platform, defensive structure" "tavern_complete:complete tavern building, cozy inn with hanging sign, social gathering place" "town_hall_complete:complete town hall building, administrative building with clock tower, government center" ) TOTAL=${#ASSETS[@]} CURRENT=0 for asset_data in "${ASSETS[@]}"; do CURRENT=$((CURRENT + 1)) # Split asset name and description ASSET_NAME="${asset_data%%:*}" DESCRIPTION="${asset_data#*:}" echo "" echo "======================================================================" echo "[$CURRENT/$TOTAL] Generating: $ASSET_NAME" echo "======================================================================" echo "Description: $DESCRIPTION" echo "" # This is where YOU (Antigravity) would call generate_image # For now, this is a placeholder that shows the workflow echo "⚠️ MANUAL STEP REQUIRED:" echo " Ask Antigravity to generate:" echo "" echo " generate_image('$ASSET_NAME', '$DESCRIPTION, game building asset, isometric view, (bold black outlines:1.4), dark hand-drawn stylized indie game asset, (gritty noir aesthetic:1.2), flat colors, muted color palette, isolated object centered on solid white background, clean edges, simple composition')" echo "" echo " Then run:" echo " cp [artifact_path] assets/images/buildings/$ASSET_NAME.png" echo " python3 scripts/remove_background.py assets/images/buildings/$ASSET_NAME.png" echo " git add assets/images/buildings/$ASSET_NAME.png" echo " git commit -m \"feat: Add $ASSET_NAME asset\"" echo "" # Wait 60 seconds before next generation if [ $CURRENT -lt $TOTAL ]; then echo "⏱️ Waiting 60 seconds before next generation..." sleep 60 fi done echo "" echo "======================================================================" echo "✅ OVERNIGHT GENERATION COMPLETE!" echo "======================================================================" echo "Total generated: $TOTAL assets" echo "Check assets/images/buildings/ for results" echo ""