Lab12 - of each bubble Touch to Pop Bubbles If user touches...

Info iconThis preview shows pages 1–5. Sign up to view the full content.

View Full Document Right Arrow Icon
Programming the Android Platform Lab 4 – Graphics & Sound
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Lab Assignment Start with a blank canvas
Background image of page 2
Touch Screen to Add Bubbles When user touches an empty location, place a bubble there Empty means there are no bubbles already there Give each bubble a randomly selected direction, speed and size Animate the movement
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 4
Background image of page 5
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: of each bubble Touch to Pop Bubbles If user touches a bubble, remove it from view Tips GraphicsCanvasBubble example shows how to animate bubbles TouchIndicateTouchLocation example shows how to handle touch events Bitmap.createScaledBitmap can be used to make bubbles of different sizes...
View Full Document

Page1 / 5

Lab12 - of each bubble Touch to Pop Bubbles If user touches...

This preview shows document pages 1 - 5. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online