iPhone Game Development - Chris Craft [165]
This application is full of animations, UIImageViews, and more.
Tip
You can find the source code for Pumpkin Face at http://appsamuck.com/day22.html.
Day 23: Hypno
Hypno is a great optical illusion app that will have you mesmerized by your iPhone in no time. It's a great app to have so you can take it with you wherever you want and show all your friends. Don't get caught looking at Hypno for too long, but make sure you show everyone this great app. It's always fun to play with. This application has a great set of animation spirals that create a mesmerizing optical illusion effect.
Hypno is full of rotating semitransparent images. Each image is randomly sized and placed and each spiral spins at a random speed, creating a fascinating effect.
Tip
You can find the source code for Hypno at http://appsamuck.com/day23.html.
Day 24: AmuckColors
If you have ever done any HTML design work, you know how hard it can be to find that perfect color. That's where AmuckColors comes in. We can't think of anything handier than something that fits in your pocket and remembers all of those cryptic HTML color codes for you. It's easy to look up color values on the go, with red, green, and blue values and HTML codes written on every swatch. Our goal was to create an application that hosted an image much larger than the display of the iPhone.
This application shows you how to use the UIScrollView to view images larger than the screen. You can also learn more about the UIToolbar.
(Special thanks to Bob Stein at http://visibonecom for permission to use this image.)
Tip
You can find the source code for AmuckColors at http://appsamuck.com/day24.html.
Day 25: Sierpinski
This application allows you to zoom in to one of the most well-known fractals, the Sierpinski triangle. Fractals are infinitely complex sets based on an initial image that is then iterated upon itself, and often presented as two-dimensional. Fractals are always a great way to show off the graphics capabilities of a platform, and the Sierpinski fractal, with its rainbow of colors, is one of the best. The zoom feature uses a mathematical algorithm to continuously redraw the fractal as the levels of magnification intensify. It's a must-have for any fractal, math, art, or programming enthusiast.
This app teaches the user to use UIImageView, Quartz graphics, and the basics of fractal geometry.
Tip
You can find the source code for Sierpinski at http://appsamuck.com/day25.html.
Day 26: LavaFlow
Remember those “gotta have ‘em” things from yesteryear—you know, the disco ball, the bell-bottom jeans, and of course, the lava lamps? Well, we thought we'd mix a little bit of that nostalgia in with today's hottest piece of technology, your iPhone. The result is LavaFlow, the grooviest way to chill out, whether you're in your bedroom at home, on the plane waiting to take off, or just lying in a field smelling the daisies. Kids will love watching those blobs of goo rise and fall over and over again, just like we did with our lava lamps years ago.
This application demonstrates how to play a looping video and shows the basics of working with video files.
Tip
You can find the source code for LavaFlow at http://appsamuck.com/day26.html.
Day 27: PhotoFrame
If you don't like the boring, bland framing of the conventional iPhone screen and want to display your photos with the beauty they deserve, you'll want to check out the PhotoFrame application. Using the iPhone screen, PhotoFrame enhances any photo and turns images captured by the iPhone camera into works of art that you can display to your friends and loved ones. PhotoFrame takes the imaging capabilities of the Apple iPhone to the next level. We created this app during the time that everyone was starting to buy digital photo frames for their families for Christmas. We decided we could create an app to do that.
This application takes an image using