This weak was based on the animation framework in which i build a popping balloon app.
Implementation:
I added balloon popping and a basic balloon image to the assets folder in the Xcode.
I added 3 variables.
ViewDidLoad function was modified to add timer which gets triggered each second and addBalloons function is called.

Then to add the gravity effect to the balloons i made addBalloons function which is connected to didPopballoon with the help of button which i created.
Function didPopBalloon was added to change the image of basic balloon to popped balloon when it strikes and the animation last for 0.4 seconds and popping balloon images fades away.
Then i added points like a score board to calculate the number of clicks.
Runtime images:

Reflection:
- how to make a image fade with the help of UIView.animation
- Learnt to make use of gravity
No comments:
Post a Comment