Corridor: 3d and Accelerometer iPhone Game

Discussion in 'Jailbreaks and iOS Hacks' started by MacRumors, Jul 12, 2007.

  1. MacRumors macrumors bot

    MacRumors

    Joined:
    Apr 12, 2001
    #1
    [​IMG]

    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.


    [​IMG]

    The instructions are a bit hard to follow without seeing the game, but makes sense when you start playing.


    Article Link
     
  2. darwen macrumors 6502a

    darwen

    Joined:
    Apr 12, 2005
    Location:
    California, US
    #2
    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.
     
  3. macgolfer53 macrumors newbie

    Joined:
    Jul 10, 2007
    #3
    a little slow

    can you speed it up = maybe twice?
     
  4. Flowbee macrumors 68030

    Flowbee

    Joined:
    Dec 27, 2002
    Location:
    Alameda, CA
  5. whooleytoo macrumors 603

    whooleytoo

    Joined:
    Aug 2, 2002
    Location:
    Cork, Ireland.
    #5
    Sigh... bug submitted...

    (;))
     
  6. bdj21ya macrumors 6502a

    bdj21ya

    Joined:
    Sep 13, 2006
    #6
    Again, I want to reiterate, this program does not rely on the accelerometer. It relies on the width of the safari viewport.
     
  7. benspratling macrumors 6502

    Joined:
    Jan 16, 2006
    #7
    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?"
     
  8. bdj21ya macrumors 6502a

    bdj21ya

    Joined:
    Sep 13, 2006
    #8
    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
     
  9. Bemused macrumors newbie

    Joined:
    Mar 19, 2004
    #9
    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.
     
  10. guzhogi macrumors 68030

    guzhogi

    Joined:
    Aug 31, 2003
    Location:
    Wherever my feet take me…
    #10
    6946
     
  11. emjayiam macrumors newbie

    Joined:
    Jul 13, 2007
    #11
    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.
     
  12. emjayiam macrumors newbie

    Joined:
    Jul 13, 2007
    #12
    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.
     
  13. JimUrban macrumors newbie

    JimUrban

    Joined:
    Jun 26, 2006
    Location:
    34.2° N 116.0° W
    #13
    Ouch!

    "YOUR HEAD A SPLODE!":eek:


    If I had a nickel for evertime I...er...nevermind.
     
  14. guzhogi macrumors 68030

    guzhogi

    Joined:
    Aug 31, 2003
    Location:
    Wherever my feet take me…
    #14
    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.
     
  15. zane macrumors 6502

    Joined:
    Jun 18, 2006
  16. air-ick macrumors member

    air-ick

    Joined:
    Jul 15, 2007
    #16
    I think this game was created to make you drop your i phone thus creating more sales.
     

Share This Page