Terraria Wiki:Sandbox

Did you know that you can make a fun little Plats vs Zombies game in Terraria? Place a Sunflower on the ground and then place a Dart Trap right next to it. Place a Pressure Plate, 7 blocks away from the Dart Trap. Connect the Pressure Plate and Dart Trap together with Wires. Then make a Zombie step on the Pressure Plate and the Sunflower will fire Arrows at the Zombies. And there you have a game called "Plants vs Zombies" inside Terraria. (Just Remove this text if it comes in you'r way)

"Plants vs Zombies" The Game: []