★ TouchArcade needs your help. Click here to support us on Patreon.

please all follow these basics

03-25-2009, 07:34 PM
#1
Senior Member [Original Poster]
Joined: Feb 2009
Posts: 2,513
please all follow these basics

hallo all developers,

please please please whatever game or app you are developing follow these two basic rules

1. if i am listening too music, do not silence it and make me listen to your in-app / game music, or if you do the first time give me an option to listen to my music, and not just an option of silence !

2. Landscape mode - if used, please please make it that whichever way up my phone is that app screen flips ! For some reason the standard seems to be that my headphone socket is always in my hand ! Of course with some apps i turn my phone round, and great my headphone socket is at the top where it no longer bothers me. Some apps / games impliment this ....question WHY NOT ALL ?

A personal request to the admins here - please make this a sticky

Last edited by soup; 03-26-2009 at 05:22 AM.
03-25-2009, 07:41 PM
#2
Joined: Sep 2008
Location: Birmingham, UK, dull corner of the world
Posts: 2,367
1) My game uses the AVAudioPlayer with aiff format files for my music and sound effects, but I can't seem to be able to play music from the library using these, even with my game music turned off. I have to turn ALL audio off in my app including sound effects before it will let me play my music from my library. Being new to developing, I am not sure how to enable my game to play library music AND my games sound effects together. Could another dev enlighten me? It would be nice for people to play their own music while playing my game.
2) I agree. My game is played in the landscape position, and it is just a quick one line code in each view controller to allow it to flip when you turn your device over. However, some developers have probably omitted this functionality as no doubt it slows the app down with it constantly checking to see which way the device is held.

Last edited by wastedyuthe; 03-25-2009 at 07:44 PM.

03-25-2009, 09:13 PM
#3
Joined: Dec 2008
Posts: 439
I'd also like to know how to implement turning off the in-game music, while keeping sound effects and allowing music outside the app... I'm using the SoundEngine file in the CrashLanding app... but I have to turn off all audio to allow outside music...

I'm thinking of switching to using AVAudioPlayer, but it seems to have the same problems?
03-25-2009, 09:15 PM
#4
You need to look into using audio sessions, as well as AudioToolbox.

Didev Studios || Twitter || YouTube || Facebook
Releases
GeoSnake || Bugz || Review Scraper (Open Source)
03-26-2009, 12:47 AM
#5
Joined: Dec 2008
Posts: 439
Quote:
Originally Posted by InsertWittyName View Post
You need to look into using audio sessions, as well as AudioToolbox.
Do you mean using AudioServicesCreateSystemSoundID.... perhaps using that for Sound Effects and AVAudioPlayer for music?
03-26-2009, 02:24 AM
#6
Joined: Mar 2009
Location: Oslo, Norway
Posts: 731
Actually making the app support both landscape-modes is easy as pie. Can't really see the necessity though. In some cases it could actually be a bad design decission: if tilting the phone away from you is used as an input method it could cause the image to switch position if you tilt too far.

Personally I have a really hard time understanding why it is important to support this at all. As most games that don't support both landscape-directions seem to use the one where the home-button is to the right I think most people would figure it out? Supporting both options seems to me to be an option-for-the-sake-of-having-options...
03-26-2009, 02:45 AM
#7
Joined: Sep 2008
Location: Birmingham, UK, dull corner of the world
Posts: 2,367
It's got nothing to do with the Home button. Like the op said, the headphone socket is under his hand on the iPhone, making it awkward with headphones in. Whereas Touch owners are ok as the headphone socket is on the other side. Allowing auto-rotate allows for both Touch AND iPhone gamers to play in comfort.
03-26-2009, 03:16 AM
#8
Joined: Mar 2009
Location: Oslo, Norway
Posts: 731
Fair enough Barry. Although I can't personally see the airplug thing as a problem on my iPhone. If this is truly a widespread problem for people, then sure, supporting both orientations should probably be included. Unless the tilting scenario I outline above is used.

I'm just naturally sceptical when people say always include "this and that feature". No feature should ever be included before the developer has gone trough the pro's and cons.
03-26-2009, 03:26 AM
#9
Joined: Sep 2008
Location: Birmingham, UK, dull corner of the world
Posts: 2,367
Agreed NickFalk. I can understand what you are saying when you think it may interfere with game controls with certain accelerometer controlled games. I have tried playing my game with headphones in, and tilting it so the headphone socket is under my left hand, and I can see what the op is on about (there are many others who would agree with him on his opinion). My game is not accelerometer controlled at all, so including the feature in my game is not a problem.
03-26-2009, 05:20 AM
#10
Senior Member [Original Poster]
Joined: Feb 2009
Posts: 2,513
It also not that the controls change in any way, merely that the screen is flipped by 180 degrees, and ok if for some reason that is not possible because of the control system then dont do it.
My point was more that the vast majority of games, would not have any difficulties in any form with their control systems if they flipped BUT they still dont it.