On Wed, May 13, 2009 at 4:38 PM, Fabian Barkhau <[email protected]> wrote: > 2009/5/13 Lucio Torre <[email protected]> >> >> On Wed, May 13, 2009 at 2:38 PM, Fabian Barkhau >> <[email protected]> wrote: >> > 2009/5/13 Facundo Batista <[email protected]>: >> >> >> >> 1. You start director with a window size of 640x400, and you put a >> >> sprite in (320,200), and you see it in the middle of the screen. >> >> >> >> 2. Then you start the director with a window size of 800x600, you put >> >> the sprite in the same location than before, and you expect it to be >> >> also centered? >> >> >> > Exactly >> >> what do you want to happen if someone changes the aspect ratio? >> > I don't mind if the player can see some additional things at the sides for > my game the its just the critical that the view height always be the same. >
Then do: x, y = director.get_window_size() scene.scale = y/600 Lucio. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "cocos2d discuss" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cocos-discuss?hl=en -~----------~----~----~----~------~----~------~--~---
