chipmunk coordination

Official forum for the Chipmunk2D Physics Library.
Post Reply
wwzhdo
Posts: 2
Joined: Tue Jul 21, 2009 12:52 pm
Contact:

chipmunk coordination

Post by wwzhdo »

Hi, I'm still studying chipmunk by reading sample code. One thing I don't understand is in demo1 code which coming with cocos2d 8.0, the coordication seems like is for x (-320-320), for y (-480-480), but iphone screen is 320x480, is my understanding of chipmunk wrong, please help.
User avatar
slembcke
Site Admin
Posts: 4166
Joined: Tue Aug 14, 2007 7:13 pm
Contact:

Re: chipmunk coordination

Post by slembcke »

The original set of demos for the desktop used a centered 640x480 screen. The Cocos2D demos are just modified enough to run, so they are either stretching them or clipping off the sides.
Can't sleep... Chipmunks will eat me...
Check out our latest projects! -> http://howlingmoonsoftware.com/wordpress/
wwzhdo
Posts: 2
Joined: Tue Jul 21, 2009 12:52 pm
Contact:

Re: chipmunk coordination

Post by wwzhdo »

got you, thanks!
Post Reply

Who is online

Users browsing this forum: Heise IT-Markt [Crawler] and 30 guests