Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I use core data with a sprite kit game?

I'm very new to core data. I'd like to use it with a sprite kit game, but I don't see the usual option to check mark it like I did with a generic xcode project. Is it still possible to use it? If so what are the steps that I have to do to configure it?

like image 339
Jordy Avatar asked Jan 26 '15 04:01

Jordy


People also ask

Is SpriteKit easy?

SpriteKit is easy to learn because it is a well-designed framework and it is even easier if you have experience with Swift. Even for a beginner, if you want to create your first game, 2D games is without a doubt the best way to transit in this new world.

How do I use Core Data in Xcode?

Open Xcode and create a new iOS project based on the Single View App template. Name the app HitList and make sure Use Core Data is checked. Checking the Use Core Data box will cause Xcode to generate boilerplate code for what's known as an NSPersistentContainer in AppDelegate.

Can you make games with Swift?

Swift is the perfect choice for game development. Developers are intrigued by Swift and want to make use of new features to develop their best games yet. Packed with best practices and easy-to-use examples, this book leads you step by step through the development of your first Swift game.

What is Sprite kit?

SpriteKit is a general-purpose framework for drawing shapes, particles, text, images, and video in two dimensions. It leverages Metal to achieve high-performance rendering, while offering a simple programming interface to make it easy to create games and other graphics-intensive apps.


1 Answers

You can certainly use core data with sprite kit game. The default sprite kit game template in Xcode does not provide an option for including core data in the starter project but you can always include core data in a sprite kit game by copying the boiler plate core data code in the AppDelegate file. There is no restriction on using core data in a sprite kit game.

like image 125
user3435374 Avatar answered Sep 17 '22 00:09

user3435374