The same sprite sheet is loaded for all Quartz and divided into frames. Depending on a random number drawn, the only part of the image is shown, giving us our Quart!
The second column is positioned directly next to the first. The Colour Property is added to the Quart Class and a simple function call from update checks for adjacent matching colours. If it finds them, it calls the deleteQuart function!
Clicking on Quartz adds a new entity called selectionRectangle. For now, this is just a tinted grey with a low alpha positioned over the selected Quart.
Coming Up Next:
Level layout, Making a move: Swapping Quartz and Score Implementation.



No comments:
Post a Comment