Added: - New plant: Lane shooter! Can only be dragged vertically. Fixed: - Flashing plants (plants being eaten) being in sync and losing the "flashing" effect
A brief explanation of DATA: Data is used with clones. When using data, the clones' properties are stored in a shared list rather that a for-this-sprite-only variable. A property is an attribute that belongs to a clone(eg. x-pos, y-pos, direction...). The advantage of this is that all sprites and clones can access and change the list of data, rather than just one clone. Without data, the peas don't know where the peashooters are. This project uses a Linked data system, which means each clone is linked to a set of properties. The clone knows where its data is via the myID variable. Then the clone will follow the data, and function how it is supposed to.