O'Reilly logo

Learning iOS 8 Game Development Using Swift by Siddharth Shekar

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The texture quad project

For the next project, we will create a textured quad object. This is the basic building block of a sprite class. Here, we will be taking an image and pasting it on top of the quad or square that we created in the earlier project.

The reason why I said that it is a basic building block for a sprite class is that we won't be able to move, rotate, or scale the sprite; we will just be displaying the sprite on the screen.

Going back to referring to the process of adding a sprite to any quad in a similar way to adding wallpaper to wall, we can add the wallpaper right-side up or upside down on the wall. Similarly, while adding images to quads, we have to specify which way is up, otherwise the sprite will be pasted upside down or ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required