Plants Vs. Zombies: Makecode Edition

(for script) I made some code for the cursor to snap to the tile like described

I’m sure there’s a better way to detect when no movement keys are pressed (without using is any key pressed) but the code here works

2 Likes

this game is so good i played so much

3 Likes

BRO THIS MUSIC IS SO PEAK HOW DID YOU RECREATE IT SO WELL!?

4 Likes

also:

5 Likes

I don’t think that’s supposed to happen… is that after playing for a really long time?

2 Likes

thanks! I wouldn’t have thought of this

2 Likes

The Zombie Combination of 26’

2 Likes

that’s a lot of repeaters

2 Likes

just replace the sunflowers oh wait there is no shovel

2 Likes

i played for a little longer than i should have.. i was at max coins for like 90% of the run until it crashed

3 Likes

There is, cursor hovers above plant them press “B”

2 Likes

its not on the pic but when i moved the cursor (it took over like 2 minutes for it to even make it on to a plant) the shovel kinda crashed or something

3 Likes

huh I didnt realize that lol I was looking for the shovel button near the plants

3 Likes
How well does the game run?
  • Buttery smooth
  • Good
  • Could be better
  • Bad
  • < 5 FPS :skull:
0 voters
2 Likes

how did it crash? If it was a gray screen, then that happens for some reason when the game runs for too long, I don’t think it’s a problem with the code.

2 Likes

it lagged out until it froze. I waited like 8 minutes, it was more of a soft lock

2 Likes