# Adding New Wilderness Block Textures

## 📝 Overview
This guide shows you how to add new block textures to Surviving Day.

## 🎨 Create SVG Textures (16x16 pixels each)

Place these files in `Textures/Blocks/`:

### 1. **flower_red.svg** - Red flower
- Simple red flower with green stem
- Colors: Red (#FF3333), Green (#33AA33)

### 2. **flower_yellow.svg** - Yellow flower
- Simple yellow/golden flower with green stem
- Colors: Yellow (#FFDD33), Green (#33AA33)

### 3. **mushroom_brown.svg** - Brown mushroom
- Brown cap with white stem
- Colors: Brown (#8B4513), Tan (#D2B48C), White (#FFFFFF)

### 4. **mushroom_red.svg** - Red mushroom with white spots
- Red cap with white dots, white stem
- Colors: Red (#DD3333), White (#FFFFFF)

### 5. **tall_grass.svg** - Tall grass
- Thin vertical grass blades
- Colors: Light Green (#88CC44), Dark Green (#559933)

### 6. **fern.svg** - Fern
- Leafy fern pattern
- Colors: Forest Green (#2D5016), Medium Green (#4A7C2E)

## 🔧 After Creating SVGs

### Step 1: Update the atlas generator
Edit `generate_atlas.py` and add to TEXTURE_DEFS (around line 54):

```python
"flower_red": {
    "all": "flower_red.svg"
},
"flower_yellow": {
    "all": "flower_yellow.svg"
},
"mushroom_brown": {
    "all": "mushroom_brown.svg"
},
"mushroom_red": {
    "all": "mushroom_red.svg"
},
"tall_grass": {
    "all": "tall_grass.svg"
},
"fern": {
    "all": "fern.svg"
}
```

### Step 2: Regenerate the atlas
Run in the Textures directory:

```bash
python generate_atlas.py
```

### Step 3: Copy the new atlas
Copy `Generated/block_atlas.png` to `Resources/block_atlas.png`

```bash
copy Textures\Generated\block_atlas.png Resources\block_atlas.png
```

### Step 4: Build the project
```bash
dotnet build
```

## ✅ Testing

Once done, you can:
1. Run the game
2. The new blocks will appear in your inventory with textures
3. Place them in the world!

## 🎮 Block IDs

The new blocks have these IDs:
- FlowerRed = 10
- FlowerYellow = 11
- MushroomBrown = 12
- MushroomRed = 13
- TallGrass = 14
- Fern = 15

## 📋 SVG Template

Here's a basic 16x16 SVG template:

```xml
<?xml version="1.0" encoding="UTF-8"?>
<svg width="16" height="16" xmlns="http://www.w3.org/2000/svg">
  <!-- Your shapes here -->
  <rect x="0" y="0" width="16" height="16" fill="#YOUR_COLOR"/>
</svg>
```

## 🌿 Tips for Good Textures

1. Keep it simple - remember it's only 16x16 pixels
2. Use clear, contrasting colors
3. Avoid too many small details
4. Test how it looks when tiled
5. Match the style of existing textures

Good luck creating your wilderness blocks! 🎨🌲🍄
