Android graphics user interaction ie. balloon popper
I'm more wondering how to go about implementing my very simple game.
For anyone who has played Angry Birds Star Wars, you know that on the
screen where you select the stage, you can tap on the piggies in the
background, and they will explode.
My daughter likes to tap on these piggies more than actually playing the
game... so I thought it'd be fun to write a simple app that displays
bouncing pigs on the screen for her to tap and explode. I know such apps
already exist, but I also wanted to expand my own programming experience.
So I think I have an idea on how to implement tapping on static graphical
elements. You could simply keep track of the xy coordinates of where the
picture is, and as long as the user taps somewhere in the vicinity, it'll
trigger the picture to be replaced by an explosion animation. Or something
like that.
But how about moving graphics? I've found tutorials that teach how to
write a bouncing ball thread on a canvas. For my idea, should each
bouncing ball (piggy) have it's own thread?
Or should I take it a step further, and try using OpenGL instead of just
the android Canvas function?
What would you guys suggest?
-Mercy
No comments:
Post a Comment