Game Editor, Saving levels help needed

Posts: 2
Joined: 2010.09
Post: #1
Iam new in here and new to game development. I've been working on a breakout game for which I wrote a simple editor. I would like to accomplish following features:

1. I want to store prebuilt levels on the iPhone.
2. The user should be able to edit and create new levels.
3. Keep data on updates (appstore).

So whats the best way to store these levels? PList, txt/xml, Core Data, SQLite?
Thanks in advance!
Quote this message in a reply
Posts: 9
Joined: 2010.03
Post: #2
I'd go with the fastest and most simple way. As always KISS - Keep It Stupid Simple. In this case simple txt file will do. Easy to parse, and edit by hand. For example:

Quote this message in a reply
Posts: 1,487
Joined: 2002.09
Post: #3
Smilediver's suggestion seconded. For storing block data like that, text files are always dead simple. You can easily edit them by hand with a text editor and they are trivial to read/write. Using a bitmap file (like a png or bmp file) might be a little easier to edit graphically, but aren't quite as easy to work with in code.

The other options you listed:
PList - Basically is a subset of XML with APIs that make it easy to read. Works well for structured data, but not so well for tilemaps.
XML - Libraries help, but XML is a pain to deal with.
Core Data, SQLite - Stay away from these unless you are storing massive amounts of data that changes often. They generally take quite a bit of code to set up, read or write data, and generally need lots of error handling code.

Scott Lembcke - Howling Moon Software
Author of Chipmunk Physics - A fast and simple rigid body physics library in C.
Quote this message in a reply
Posts: 2
Joined: 2010.09
Post: #4
I will look into using plain text files. I let you know if it worked shortly =)
Thanks guys!
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Saving data to file _Event_Horizon 2 3,947 Oct 28, 2005 06:53 AM
Last Post: _Event_Horizon
  Saving High Scores Nick 7 6,820 Jun 20, 2005 12:08 AM
Last Post: Malarkey
  Saving/Loading... CarbonX 6 5,582 Sep 25, 2004 07:47 AM
Last Post: Steven