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 taddeimania

Hi Folks,

I've looked through the forums to see if anyone else is having the same problem but I haven't had much luck so i'm sorry if this has been addressed already.

So I took a prototype project into Ejecta just to see what the process was with that wrapper and was altogether impressed except for one caveat. The orientation seems to be incorrect (or at least not how I want it).

This is how the application looks in the browser.
http://i.imgur.com/h0r2Tmq.png

This is how the application looks in horizontal iPad running iOS 5.1.
http://i.imgur.com/3s6Afpt.png

When I run the application in portrait it is playable but I don't want to support portrait mode - I want to design this game board to run strictly in horizontal mode.

The source for the game is:
https://github.com/taddeimania/impactjs-memorypuzzle

and the contents of my index.js is simply:
ejecta.require('lib/impact/impact.js');
ejecta.require('lib/game/main.js');

I've tried calling

canvas.rotate(90)

before of the ejecta.require()'s but that didn't do anything.

I'd appreciate any help on the matter. Thanks!

1 decade ago by mimik

The problem might be that you changed orientation in Xcodes Summery tab.
You have to change it in your Ejecta projects info.plist file instead.

it's under Resources/info.plist
then change initial interface orientation: Landscape

1 decade ago by taddeimania

Thanks mimik I will test that out when I get home.

1 decade ago by taddeimania

It worked!

For future reference I should have read closer in to the getting started paragraph of this:

http://impactjs.com/ejecta/overview
Page 1 of 1
« first « previous next › last »