Register FAQ/Rules Forum Spy Search Today's Posts Mark Forums Read

Welcome to the Mac Forums forums. Please read the FAQ if you have questions. Register to participate.

 
Go Back   Mac Forums > iPhone and iPod Touch Forums > iPhone Forums > iPhone Hacks
TouchArcade.com - iPhone Game Reviews and News

Reply
 
Thread Tools Search this Thread  
Old Jul 13, 2007, 12:45 AM   #1
MacRumors
macrumors bot
 
Join Date: Apr 2001
Corridor: 3d and Accelerometer iPhone Game



Michael Johnson released Corridor, dubbed "the first 3D game for the iPhone".

Beyond that, Johnson's game also supports the iPhone's accelerometer as the controller for the game.




The instructions are a bit hard to follow without seeing the game, but makes sense when you start playing.
Quote:
1. If you see protrusions on the left and right, hold the iPhone in portrait mode.
2. If you see protrusions on the top and bottom, hold the iPhone in landscape mode.
3. Do NOT change the orientation of the iPhone while you are in a section with protrusions. This will cause you to crash.


Article Link
MacRumors is offline   Reply With Quote
Old Jul 13, 2007, 01:48 AM   #2
darwen
macrumors 6502a
 
darwen's Avatar
 
Join Date: Apr 2005
Location: California, US
Lets start a high score page... 4921 is the best I have done, I have just played it twice. I might try to get a better score later.
__________________
Darwen
darwen is offline   Reply With Quote
Old Jul 13, 2007, 02:18 AM   #3
macgolfer53
macrumors newbie
 
Join Date: Jul 2007
a little slow

can you speed it up = maybe twice?
macgolfer53 is offline   Reply With Quote
Old Jul 13, 2007, 03:48 AM   #4
Flowbee
macrumors 68030
 
Flowbee's Avatar
 
Join Date: Dec 2002
Location: Alameda, CA
Best protrusion-based game ever!
__________________
Podophile.com >> Home of Nike+iPod hacks and FAQs.
Flowbee is offline   Reply With Quote
Old Jul 13, 2007, 06:39 AM   #5
whooleytoo
macrumors 68040
 
whooleytoo's Avatar
 
Join Date: Aug 2002
Location: Cork, Ireland.
Send a message via AIM to whooleytoo
Quote:
3. Do NOT change the orientation of the iPhone while you are in a section with protrusions. This will cause you to crash.
Sigh... bug submitted...

()
__________________
Greenpeace Apple
Mac <- Macintosh <- McIntosh apples <- John McIntosh <- McIntosh surname <- "Mac an toshach" <- "Son of the Chief"
whooleytoo is offline   Reply With Quote
Old Jul 13, 2007, 11:13 AM   #6
bdj21ya
macrumors 6502a
 
bdj21ya's Avatar
 
Join Date: Sep 2006
Again, I want to reiterate, this program does not rely on the accelerometer. It relies on the width of the safari viewport.
bdj21ya is offline   Reply With Quote
Old Jul 13, 2007, 11:31 AM   #7
benspratling
macrumors regular
 
Join Date: Jan 2006
random bug, or didn't have a chance from the start?

If you have to hold the iPhone one way in verticals and another way in horizontals and you can't change it while in either, then there's no possible way to handle a vertical immediately following a horizontal - which is where my game ended.

It's a cool idea, but it illustrates why developers need an actual application not just javascript: 3D graphics are not 3D at all, and animations are sadly slow and jerky. My javascirpt experiments are leaving my own animations much to be desired. This phone can do cover flow, but with javascript it can't smoothly move so much as a text field smoothly off screen without either running out of run time first, or moving so much that it appears jumpy!

Come on Steve, what happened to "Cocoa is the premeire language for Mac OS X Development?"
benspratling is offline   Reply With Quote
Old Jul 13, 2007, 12:04 PM   #8
bdj21ya
macrumors 6502a
 
bdj21ya's Avatar
 
Join Date: Sep 2006
Quote:
Originally Posted by benspratling View Post
If you have to hold the iPhone one way in verticals and another way in horizontals and you can't change it while in either, then there's no possible way to handle a vertical immediately following a horizontal - which is where my game ended.

It's a cool idea, but it illustrates why developers need an actual application not just javascript: 3D graphics are not 3D at all, and animations are sadly slow and jerky. My javascirpt experiments are leaving my own animations much to be desired. This phone can do cover flow, but with javascript it can't smoothly move so much as a text field smoothly off screen without either running out of run time first, or moving so much that it appears jumpy!

Come on Steve, what happened to "Cocoa is the premeire language for Mac OS X Development?"
I agree, this is pretty lame. At least give us some sort of dashcode environment for heaven sakes. Have you tried using .gif animations and stepping through the frames with javascript?

Also, developers could do some really cool stuff, even with javascript, if Apple would just explain how to get data from the accelerometer
bdj21ya is offline   Reply With Quote
Old Jul 13, 2007, 01:00 PM   #9
Bemused
macrumors newbie
 
Join Date: Mar 2004
Tip: Quick way to start a new game

while this isn't the most exciting game I've ever played its entertaining.

I'm no expert but I believe that you have time to switch the orientation before a new protrusion. So the last couple comments are overly critical. The game works on the iphone you're either moving the orientation too quickly or waiting too long - thus sploding your head. I think that's the whole point of the game.

Here's a tip. To start a new game quickly, instead of waiting for the new game window to load just hit your safari forward arrow and it will start you right at a new game.
Bemused is offline   Reply With Quote
Old Jul 13, 2007, 03:47 PM   #10
guzhogi
macrumors 6502a
 
Join Date: Aug 2003
Quote:
Originally Posted by darwen View Post
Lets start a high score page... 4921 is the best I have done, I have just played it twice. I might try to get a better score later.
6946
guzhogi is offline   Reply With Quote
Old Jul 13, 2007, 06:37 PM   #11
emjayiam
macrumors newbie
 
Join Date: Jul 2007
Quote:
Originally Posted by macgolfer53 View Post
can you speed it up = maybe twice?
Unfortunately, JavaScript just doesn't execute terribly fast on the iPhone. The only way to speed it up is by dropping frames at this point. I may be able to make some code tweeks but I don't expect to be able to do much about the speed.

On a side note, you start out moving along z-axis at 30 pixels per frame. Every 'cube' of the map you make it through adds 1 pixel to that speed. So as you progress, you speed up.

Last edited by emjayiam : Jul 13, 2007 at 06:42 PM.
emjayiam is offline   Reply With Quote
Old Jul 13, 2007, 06:42 PM   #12
emjayiam
macrumors newbie
 
Join Date: Jul 2007
Quote:
Originally Posted by benspratling View Post
If you have to hold the iPhone one way in verticals and another way in horizontals and you can't change it while in either, then there's no possible way to handle a vertical immediately following a horizontal - which is where my game ended.
Actually, there is never a horizontal and a vertical section back to back. I took that into consideration when coding things. You are guaranteed to have at least 1 open section between orientation changes.
emjayiam is offline   Reply With Quote
Old Jul 14, 2007, 04:25 AM   #13
JimUrban
macrumors newbie
 
Join Date: Jun 2006
Location: 34.2° N 116.0° W
Ouch!

"YOUR HEAD A SPLODE!"


If I had a nickel for evertime I...er...nevermind.
JimUrban is offline   Reply With Quote
Old Jul 14, 2007, 01:47 PM   #14
guzhogi
macrumors 6502a
 
Join Date: Aug 2003
Quote:
Originally Posted by JimUrban View Post
"YOUR HEAD A SPLODE!"


If I had a nickel for evertime I...er...nevermind.
Yeah, I know. Especially when there's only 1 section between having to turn. I keep thinking "Can I turn now? Can I turn?" Plus, sometimes I get that immediately b/c I'm holding my iPhone in one way and it starts out in the other way.
guzhogi is offline   Reply With Quote
Old Jul 14, 2007, 11:43 PM   #15
zane
macrumors 6502
 
Join Date: Jun 2006
Send a message via AIM to zane
This game is sooo boring.
zane is offline   Reply With Quote
Old Jul 15, 2007, 08:55 AM   #16
air-ick
macrumors member
 
Join Date: Jul 2007
I think this game was created to make you drop your i phone thus creating more sales.
air-ick is offline   Reply With Quote

Reply

Mac Forums > iPhone and iPod Touch Forums > iPhone Forums > iPhone Hacks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 11:52 PM.

Mac News | Mac Rumors | iPhone Game Reviews | iPhone Apps

Powered by vBulletin® Version 3.6.10
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright 2002-2009, MacRumors.com, LLC