The engine behind SpriteKit

Update. As the NDA lifted up, I can put it more simple: Is Box2D.

I was just wondering what is the engine behind SpriteKit. Then I just wrecked up some instantiation, and realized that actually it is explicitly named in the body message of some exception it raised. Please find a definitive guide below to see it yourself.

Anyway, you can see PhysicsKit private iOS 7 framework – internal part of SpriteKit – headers those can lead you to the same conclusion.

1. Create a SpriteKit Game xCode project

Create a SpriteKit xCode project by following your instincts.
Use iOS 7 SDK and Xcode 5.
SpriteKit - Develop high-performance 2D games with the powerful new Sprite Kit framework, which combines everything you need to animate sprites, simulate physics and create beautiful particle systems all in one easy-to-use set of APIs.

2. Wreck SKScene to raise exception

Assign nil as SKView view in SKViewController.m.

SKView * skView = (SKView *)nil;

Call a method on the viewless SKScene scene in SKMyScene.m by insert this call below into initWithSize: implementation.

self.physicsBody = [SKPhysicsBody bodyWithEdgeLoopFromRect:self.frame];

3. Build and run to see Box2D exception

Using the iPad simulator (nor iPhone or iPad Retina). There you go.

DISCLAIMER. THE INFORMATION ON THIS BLOG (INCLUDING BUT NOT LIMITED TO ARTICLES, IMAGES, CODE SNIPPETS, SOURCE CODES, EXAMPLE PROJECTS, ETC.) IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE INFORMATION ON THIS BLOG (INCLUDING BUT NOT LIMITED TO ARTICLES, IMAGES, CODE SNIPPETS, SOURCE CODES, EXAMPLE PROJECTS, ETC.).

Become a Patron!