Part of the Making a Flash game like Plants Vs Zombies series
Welcome to step four. In this step we’ll make plants fire and eventually kill zombies. Let’s start defining when a plant can fire: * When there is at least one zombie on the same row the plant is placed * When it’s not already firing (plants can fire only one bullet at once) * When [...]
Part of the Making a Flash game like Plants Vs Zombies series
Here we go with 3rd step of Plants Vs Zombies game. Now we will place the bought plant on the game field and let the zombies enter. Adding a zombie is quite easy because we manage it in the same way we managed the sun. Just like suns appear out of the top of the [...]
Part of the Making a Flash game like Plants Vs Zombies series
In the second part of the series, it’s time to raise money to buy a plant. Also, we should add a smooth animation to falling suns, fix a bug which made them appear only on certain tiles and make them disappear if they aren’t picked up after a given amount of time. Fixing the bug [...]