# Terraria-Style 2D Sandbox - Survival & Crafting Template | Summer Engine

## About this template

Terraria is a 2D tile-based sandbox, not a voxel game, but it belongs in the sandbox conversation because of what it pioneered. The world generates in layers: surface forests and deserts, underground caverns with ore veins, a deep underground jungle, and a hellscape at the bottom. Kill the Wall of Flesh boss in hell and the entire world shifts into hardmode, spawning new biomes, ores, and enemies. Players build toward a class identity (melee, ranged, mage, summoner) not by choosing a class but by equipping synergistic gear. NPCs move into housing that meets specific requirements. Crafting chains run deep: ore to bars, bars to weapons, weapons to ingredients for better weapons. Wire and logic gates enable automation. Expert and Master modes add exclusive drops.

Summer Engine lets you design this layered progression through conversation. Describe your world layers, boss gates, equipment-driven classes, and NPC housing rules. The AI helps you build a 2D sandbox where defeating a boss transforms the entire world. Pre-hardmode and hardmode are almost different games sharing the same save file. Build toward that feeling: bosses as world-state switches, not just health bars to drain.

## Who it's for

* Developers who want to build a Terraria-inspired 2D sandbox with boss-gated world progression.
* Designers who want deep crafting chains and equipment-driven class systems without explicit class selection.
* Solo devs prototyping a side-scrolling survival sandbox with layered world generation.

## Highlights

* ### 2D Boss Progression Sandbox  
A layered 2D world where defeating key bosses triggers world evolution. Pre-hardmode to hardmode transition spawns new biomes, ores, and enemy types across the entire map.
* ### Equipment-Driven Class System  
No class selection screen. Players become melee fighters, mages, rangers, or summoners based on what they equip. Armor set bonuses and accessory synergies define builds organically.
* ### NPC Town Builder  
NPCs with unique shop inventories move into player-built rooms that meet housing requirements (walls, door, table, chair, light). NPC happiness affects prices. Town building layers on top of combat.

## Highlights

### Boss-gated world evolution

Defeating the Wall of Flesh triggers hardmode: new ores spawn in existing terrain, corruption and hallow biomes spread, and enemy difficulty jumps. The world transforms around the player.

### Emergent class system

No class picker. Players specialize by equipping synergistic gear. Melee armor with melee weapons, mage robes with spell tomes. Armor set bonuses lock in the playstyle.

### Deep crafting chains

Multi-step crafting where raw ore becomes bars, bars become components, components become weapons. Some items require combining multiple crafted pieces at specialized stations.

### Layered world generation

Surface biomes sit above underground caverns, an underground jungle, a glowing mushroom biome, and a hell layer at the bottom. Each layer has unique blocks, enemies, and loot.

## Features

* ### 2D tile-based terrain  
Side-scrolling world built from tiles, not voxels. Players dig, place, and interact with foreground and background tile layers. Platforming movement with grappling hooks and wings.
* ### NPC housing system  
Build rooms that meet requirements (enclosed walls, a door, a flat surface, a chair, a light source) and NPCs move in. Each NPC sells unique items. Happiness bonuses for preferred biomes and neighbors.
* ### Wire and logic automation  
Place wire to connect switches, pressure plates, and timers to traps, doors, and teleporters. Logic gates enable complex contraptions. Wiring is invisible during normal play.
* ### Expert and Master difficulty  
Higher difficulties add new boss attack patterns and exclusive item drops rather than just inflating health. Expert bags contain treasure unavailable on normal. Master mode adds pets and relics.

## Genre fit

* Sandbox
* Survival
* Action
* Platformer
* Crafting
* RPG
* Desktop
* Web
* Mobile

## Related Templates

[View All](https://www.summerengine.com/templates)

[Voxel Sandbox Build a voxel world game where players mine terrain, construct structures block by block, and interact with a fully destructible and constructible environment. The world is the canvas. Survival & Crafting](https://www.summerengine.com/templates/survival/voxel-sandbox/voxel-sandbox)

[Minecraft-Style Voxel World Build a Minecraft-style infinite voxel world with block-by-block construction, survival mechanics, crafting table recipes, multiple dimensions, redstone-like logic circuits, and a day/night cycle where darkness brings danger. Survival & Crafting](https://www.summerengine.com/templates/survival/voxel-sandbox/minecraft-style)

[Crafting Survival Build a survival game where players gather raw materials, craft tools and shelters, and push back against hunger, cold, and hostile wildlife. Describe your vision and Summer Engine builds the foundation with you. Survival & Crafting](https://www.summerengine.com/templates/survival/crafting-survival/crafting-survival)

Source: https://www.summerengine.com/templates/survival/voxel-sandbox/terraria-style

---

## Machine-readable resources

- Site index for agents: https://www.summerengine.com/llms.txt
- Full inlined content: https://www.summerengine.com/llms-full.txt
- Porting catalog: https://www.summerengine.com/llms-porting.txt
- Structured catalog: https://www.summerengine.com/agent-catalog.json
- Sitemap: https://www.summerengine.com/sitemap.xml
- Developer resources: https://www.summerengine.com/docs