oH lOoK! iT GLitcHeS a lOt! fIX It! Yeah. Its hard to program stuff like this on scratch, I tried my best. I'm not a ultimate coder like griffpatch, so this is the best I can do! Press 1, 2 or 3 to plant units. (1 for peashooters, 2 for wall nuts, 3 for cherry bomb) Achievements included! How far can you get?
UPDATE: Added cherry bomb and new achievement. Chomper and sunflower coming soon. Thanks to the original game Plants VS Zombies.