Advertise Books Events Forum News Social Networking Support Us

sdkIQ for iPhone
($4.99)

Shape Up
($0.99)

Your First iPhone App
($1.99)

iVidCam Free
(free)

Kid Art
($0.99)

iPUBQUIZ
(£1.19)

ArtStudio
($3.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 10-02-2008, 07:09 PM   #1 (permalink)
Registered Member
 
Ivan's Avatar
 
Join Date: Oct 2008
Location: Christchurch, NZ
Posts: 106
Default Puzzle game UI

Hi

I've almost finished my first iPhone app which is a puzzle game based on a 16x16 playfield (20x20 pixel tiles). To move the tiles I was using the touchesBegan etc to calculate which tile and then user's swipe direction to move the tile. This worked great in the simulator but when I finally managed to get it to run on my iPhone the UI was far too fiddly because the tiles are small. I put this down fingers being a lot less accurate than the mouse pointer.

My solution (which I am currently coding so haven't tried yet) is to divide the code to give me one routine for tap (which places an animated cursor over the tile) and another routine for swipe. So the user now has to tap the tile and then they can swipe anywhere on the screen for direction. In addition to this I have got around the smaller tile issue by attempting to be a bit smarter with the tap and cursor positioning. When the user taps the screen I check where they tap and if it isn't on an interesting (moveable) tile then I do a quick search around the adjacent tile to see if they really meant one of those. (+ a bit of extra code for priority if more then one moveable tile is adjacent.)

The reason for this posting is just general discussion. I was curious how other people handle this sort of thing?
A alternative thought was to zoom in when the user taps such that they could select the tile more accurately but I figured this could take a while to code and may give the application a clunky feel.

The point is that it doesn't matter how good the game is, if the UI sucks then people just won't play it and it will get bad reviews/feedback.

I'd love to hear what other people are doing - making the playfield much smaller than 16x16 would be quite limiting.

Cheers
Ivan
Ivan is offline   Reply With Quote
Old 10-02-2008, 07:15 PM   #2 (permalink)
New Member
 
Join Date: Sep 2008
Posts: 1,431
Default

The recommended size for buttons and tableview rows is 44. My fingers are big and I kind of hate using the iPhone keyboard for anything. There is a special corner of hell reserved for the guy who designed the password entry field.
PhoneyDeveloper is offline   Reply With Quote
Old 10-02-2008, 07:58 PM   #3 (permalink)
Registered Member
 
Join Date: Apr 2008
Posts: 329
Default

You're on the right track. But what I've found, when giving people the opportunity to select an item, and then giving them the entire screen to move it, they never take advantange of that fact, and will just move their finger over the item, even if it's completely covered up by their finger. Perhaps an alternate solution would be to just have a zone around the item, that is big enough to grab hold of. That way you leave the rest of the screen open for other actions. Also, you need to remember that you may have female players, with long fingernails. They tend to use the device with the flat part of their thumb or finger, which is massive compared to a finger tip. And since the device chooses what part of the finger is the contact point, you need to make sure you're covering a large enough area to catch what is considered the actual touch location.
Delirium is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Enter the iPhone App Challenge!  Win $500!
» Advertisements
» Stats
Members: 24,356
Threads: 39,149
Posts: 171,628
Top Poster: smasher (2,577)
Welcome to our newest member, Jakison
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 07:23 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0