It is pretty simple plant sunflowers to produce more sun and peashooters to kill the zombies. If the zombies get through you have a lawn mower per lane to protect you.
I made this myself with the original ideas from a game called Plants VS. Zombies because I just wanted to see if I could make it in scratch. There are many glitches and you can't die because you have to do nothing to lose so I just didn't code that part in. I don't really do scratch anymore so there is almost no chance I make the full game or even another level but I hope you enjoyed this one. I tried to make most things in scratch but some were just straight out of the internet but there are pretty obvious.