Skip to main content

Intro

Welcome to Unity 2D Part 1: Launch Your Own Tower Defense Game! Gear up, young developers!

Prepare for an exciting coding journey in 2D game development! With your Code Coach guiding you, you'll design and build a tower defense game inspired by Plants vs. Zombies that's both strategic and engaging!

How this Tutorial is Designed 📚✏ïļâ€‹

Get ready for an awesome recreation of Plant vs. Zombies with your own twist! Each stage offers three difficulty options and you get to choose which challenge you think you can conquer!

  • Easy: Make a fully functional Plants vs. Zombies game of your own!
  • Medium (Recommended): Polish your game to make an even cooler version!
  • Hard: Try the challenge alone, using your skills try creating your own twist to the game!

What is Plants vs. Zombies? 🧟ðŸŠī​

Plants vs. Zombies is a timeless classic that has over 200 million downloads! In Plants vs. Zombies, players place different types of plants and fungi, each with their own unique offensive or defensive capabilities, around a house, in order to stop a horde of zombies from reaching their house!

Stage Design ðŸŽĻ📋​

There wil be a total of five stages, however some stages will be harder than others and may take more time.

The first few stages will be the most challenging if you are new to Unity. Don't be afraid to take things slow.

Session 1

Objective: Setting up and creating basic zombies

Difficulty:

  • Easy: Set up the zombies and the zombie spawner.
  • Medium: Add walking animations to zombies.
  • Hard: Create different types of zombies!

Session 2

Objective: Setting up plants and game manager component

Difficulty:

  • Easy: Set up the grid and the peashooters.
  • Medium: Add animations to peashooters.
  • Hard: Create different types of plants!

Session 3:

Objective: Creating bullets and shooting scripts

Difficulty:

  • Easy: Set up bullets to shoot the zombies!
  • Medium: Add animations for bullets.
  • Hard: Create bullets for each of the new plants you made.

Session 4:

Objective: Creating suns and sunflowers

  • Easy: Set up sunflowers.
  • Medium: Add animations to sunflowers.
  • Hard: Create advanced sunflower mechanics.

Session 5:

Objective: Making zombies aggressive and dangerous

  • Easy: Set up zombie damage mechanics.
  • Medium: Add attack animations to zombies.
  • Hard: Create the damage mechanics for your new zombies.