Core Animation Parallax Scrolling

If you’re looking to expand your Core Animation savviness, this is an excellent article:

Parallax Scrolling (Core Animation Games 4)

It has been quite a while since I wrote the last article in the Core Animation Games series. If you remember, in it I complained bitterly about the CA scrolling classes, and how none of them filled the ticket. To recapitulate, these are the 3 things I needed:

A window into a coordinate system plane populated by “objects”…

that smoothly moves through it by remapping how its borders map to that underlying plane…

and loads the objects to be displayed as they are needed, while keeping memory requirements in check.

So let’s explain how to do that with Core Animation, and as a bonus we will do parallax scrolling, talk about some graphic optimizations, and show you flying cupcakes…

Check out the sample project — didn’t know you could do that with Core Animation, did you? Mind you, it’s not the easiest thing to do, as detailed perusal of the article will make clear … in fact, it’s not immediately apparent why just using an OpenGL framework in the first place wouldn’t be the right choice for almost everybody. Still, it’s always good to know this kind of stuff, just in case.

Also check out the previous posts of the series; Core Animation tidbits galore!

Frame-by-Frame Sprites with Core Animation

Space-Time! (Core Animation Games 2)

Scrolling Hell (Core Animation Games 3)

Alex | October 9, 2011

Leave a Reply