Joyful Games – iPhone game development with Apple’s Swift new language

Email Contact

Play SnakeJoy! The most addicting fun snake game on the internet

Play SnakeJoy in Your Browser!

Upside Down SKPhysicsBody when Loaded From Texture

I ran into an odd SpriteKit bug the other day when preloading and caching my texture atlases. It seems that you cannot create more than one SKPhysicsBody from a single instance of a texture, or all subsequent physics bodies will be created upside down. This StackOverflow thread suggests it’s an issue with internally cached textures.

Building an SKPhysicsBody from a cached texture creates inverted physics bodies

Building an SKPhysicsBody from a cached texture creates inverted physics bodies

(more…)

Game Development with Swift Released!

Late last night I received an email from my publisher: Game Development with Swift is officially published! It is so exciting to have my work out in the world, helping people learn a fun skill. I can’t wait for feedback and to see some of the games the readers create. If you are interested in SpriteKit, Swift, or any 2D game development on iPhone, iPad, and iOS in general, check it out!

Read the Amazon Game Development with Swift page

. . . or the Publisher Game Development with Swift page