Two Finger Play

iPhone game development, by a college student with a short attention span

Name:
Location: Atlanta, GA, United States

I don't wear shoes. If you see a barefoot kid walking around the Tech campus, say hi.

8.3.08

Tris scorin' stuff

Had some fun working on the score system for Tris today. When I was planning this, I debated (...you know, with myself) a couple of ways of handling the name system:
  1. Pull the name from the "me" card in the address book. This would provide the cleanest interface and would tie in nicely with a global score system, but has the problems of (a) possibly annoying some users who prefer to go by aliases, who let other people play with their phones, or who want different names on the high-score list for some other reason, and (b) probably being a lot of work to implement, since the ABRecord stuff in the current API really isn't pretty.

  2. Present a blank "name" field at each game-over. This would be the easiest to implement and would let users name themselves as they wished; it would also, however, really annoy the people who just wanted to keep playing instead of having to type a name each time.

  3. Present a "name" field at each game-over, but fill it with whatever name was entered last time. This is what I've settled on. Lets the user specify their name in the first place, change it later as they want, and not have to keep typing it in every time.

With that, the UI that I mentioned in the last post, and a bit of work with NSUserDefaults (which, thankfully, changed very little in the transition from desktop to phone), Tris now saves high scores, with names, and sorts them properly, all within the preferences framework which is more or less how I'm supposed to be doing it. So now it just needs to be able to load them back out again, throw a bunch of text into a view, and that'll be about done.

Labels: , ,

4 Comments:

Anonymous Anonymous said...

Is there a way to clear the high scores?

4/26/08, 12:17 AM  
Blogger mahalis said...

Only by rummaging through your filesystem a bit. Find and delete /var/mobile/Library/Preferences/net.mm-3.iphone.tris.plist and the scores should clear. :)

4/26/08, 3:09 AM  
Anonymous Anonymous said...

Is there a way to edit the High Scores? How would I delete a score?

4/29/08, 2:35 PM  
Anonymous Anonymous said...

When will the global High Score be released?? Today i played this wonderfull game about an hour to get 116637 points... i was lvl 8x, or 9x? (don't remember^^).

Can i then just paste my local highscore to the global one, or do i have to play the hole 116k points again for the global one? :(

shu8i

6/7/08, 5:49 PM  

Post a Comment

Subscribe to Post Comments [Atom]

<< Home