March 2015
Intermediate to advanced
224 pages
6h 2m
English
Animation is a powerful visual cue to show players how their actions affect a game. Whenever a player causes the game state to change, you need to display the results. In this chapter, you’ll add code to detect and remove bubble groups, learn more about animating CSS sprites, and implement a nifty exploding effect in jQuery.
At this point, players can fire bubbles at the game board, and those bubbles will become part of the bubble grid. Now, we need to pop groups of matching bubbles when a player fires the correct color at them. When curBubble is fired into another bubble and a group of three or more matching bubbles forms, all bubbles in that group should show a popping animation and then ...
Read now
Unlock full access