Re: [pygame] Resolution for a 2d game

2011-05-19 Thread Rob Leachman
By no means do I hold up my effort as the best way (LOL not even close), just a way to handle some of this... of course Biagini you would see I'm not addressing the most interesting parts of your question... http://www.pygame.org/project-Pythentene-1787-3113.html

Re: [pygame] Resolution for a 2d game

2011-05-19 Thread Nathan BIAGINI
Hey. Thanks for all your reply. The solution i have kept is to grab the size of the graph from the server (my game is an online 2d shooter) and than divide the chosen resolution by this value to grab a coefficient. I use this float coefficient to adapt speed and position on client side. I have

Re: [pygame] Resolution for a 2d game

2011-05-16 Thread Daniel Pope
On Sun, May 15, 2011 at 08:49:07PM +0200, Christopher Arndt wrote: On 15.05.11 19:47, BIAGINI wrote: I really dont know how to handle several resolution especially for my online game. Just make your game fullscreen and choose a fixed resolution that will fit on the smallest supported

Re: [pygame] Resolution for a 2d game

2011-05-16 Thread R. Alan Monroe
Please don't force a fullscreen resolution. It doesn't restore properly on dual-head setups. Agreed. Even on single screens it often repositions other running apps' windows. A real nuisance. Alan

Re: [pygame] Resolution for a 2d game

2011-05-16 Thread R. Alan Monroe
For example, someone who play in 800*600 will move one side of the screen to another faster than someone who play in 1280*800... I really dont know how to handle several resolution especially for my online game. Track all positions in floating point and multiply them by a different scaling

Re: [pygame] Resolution for a 2d game

2011-05-16 Thread Christopher Night
On Mon, May 16, 2011 at 3:00 AM, Daniel Pope ma...@mauveweb.co.uk wrote: Please don't force a fullscreen resolution. It doesn't restore properly on dual-head setups. This was discussed here: http://www.pyweek.org/d/3953/ I asked in that thread but I never heard an answer: is there no way

Re: [pygame] Resolution for a 2d game

2011-05-16 Thread James Paige
On Mon, May 16, 2011 at 07:25:02AM -0400, R. Alan Monroe wrote: Please don't force a fullscreen resolution. It doesn't restore properly on dual-head setups. Agreed. Even on single screens it often repositions other running apps' windows. A real nuisance. Alan Another big advantage of

Re: [pygame] Resolution for a 2d game

2011-05-16 Thread Christopher Arndt
On 16.05.11 17:37, James Paige wrote: On Mon, May 16, 2011 at 07:25:02AM -0400, R. Alan Monroe wrote: Please don't force a fullscreen resolution. It doesn't restore properly on dual-head setups. Agreed. Even on single screens it often repositions other running apps' windows. A real

[pygame] Resolution for a 2d game

2011-05-15 Thread BIAGINI
Hi. I post because i m wondering something about the choose of the resolution regarding a 2d game. Assuming my game resolution is actually 1280*800 and the person who want to play have a computer which dont support this display mode? A nice thing would be to adapt the resolution for specific

Re: [pygame] Resolution for a 2d game

2011-05-15 Thread Christopher Arndt
On 15.05.11 19:47, BIAGINI wrote: I really dont know how to handle several resolution especially for my online game. Just make your game fullscreen and choose a fixed resolution that will fit on the smallest supported monitor. Chris

Re: [pygame] Resolution for a 2d game

2011-05-15 Thread BIAGINI
So my game will run in 640*480... I m not sure to understand. I really want to make my game is an higher resolution than 640*480. Le 15 mai 2011 à 20:49, Christopher Arndt ch...@chrisarndt.de a écrit : On 15.05.11 19:47, BIAGINI wrote: I really dont know how to handle several resolution

Re: [pygame] Resolution for a 2d game

2011-05-15 Thread Forrest Voight
Then query the monitor sizes using pygame.display.list_modes or make it a configurable option, and use math that works independently of the resolution. On Sun, May 15, 2011 at 3:37 PM, BIAGINI nathan.o...@gmail.com wrote: So my game will run in 640*480... I m not sure to understand. I really

Re: [pygame] Resolution for a 2d game

2011-05-15 Thread Greg Ewing
BIAGINI wrote: I really want to make my game is an higher resolution than 640*480. The best way to do this will depend a lot on the nature of the game. You essentially have two choices: 1) Allow scrolling, although that won't be appropriate for some kinds of game. 2) Change the resolution