Device Resolution Question
Posted: Thu Aug 04, 2011 3:20 pm
Hello All,
I'm new to Chipmunk and relatively new to Objective C, but have been developing for 16 years....so I'm not a complete n00b. I will try to frame my question in the best way that I can.
I have been playing with the example code that was published online at:
http://www.alexandre-gomes.com/articles/chipmunk/
I have been able to make complete sense of the entire sample, but when I port the code to iPad, I have had to trick Chipmunk into understanding the 768x1024 screen resolution by using negative Y coordinates. For example if I try to add a static shape to my space, I have to set its initial position to something like -560 to have it hit the bottom of the screen.
Is there some configuration I need to set in the source/core files that defines my screen resolution?
Thanks...
John
I'm new to Chipmunk and relatively new to Objective C, but have been developing for 16 years....so I'm not a complete n00b. I will try to frame my question in the best way that I can.
I have been playing with the example code that was published online at:
http://www.alexandre-gomes.com/articles/chipmunk/
I have been able to make complete sense of the entire sample, but when I port the code to iPad, I have had to trick Chipmunk into understanding the 768x1024 screen resolution by using negative Y coordinates. For example if I try to add a static shape to my space, I have to set its initial position to something like -560 to have it hit the bottom of the screen.
Is there some configuration I need to set in the source/core files that defines my screen resolution?
Thanks...
John