Impact

This forum is read only and just serves as an archive. If you have any questions, please post them on github.com/phoboslab/impact

1 decade ago by paulh

When building the demo app and running on an iphone 4 (retina) simulator the program crashes?

is this meant to happen?



#import <UIKit/UIKit.h>

int main(int argc, char *argv[]) {
    
    NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
    int retVal = UIApplicationMain(argc, argv, nil, nil);
    [pool release];
    return retVal;
}

1 decade ago by paulh

added this:



if( ig.ua.iPhone4 ) {
         // The iPhone 4 has more pixels - we'll scale the 
         // game up by a factor of 4
         ig.main('#canvas', MyGame, 60, 160, 160, 4);
         }
         
         
         
// Start the Game with 60fps, a resolution of 240x160, scaled
// up by a factor of 2
ig.main( '#canvas', MyGame, 60, 480, 320, 1 );

});



no change?
Page 1 of 1
« first « previous next › last »