Re: [pygame] GP2X Game Comp
On Tuesday 13 June 2006 03:19, Mikael Moutakis wrote: 2006/6/13, Simon Wittber [EMAIL PROTECTED]: FYI: http://gametunnel.com/phpBB/viewtopic.php?p=1147 Thanks for this! The GP2X is a handheld game device which runs Linux, and can run python and pygame. Sounds really cool! What performance can you get with the device? Measured poorly, I get around 20fps, but that's with not really trying for a good frame rate. (Numbers based on bouncing a few sprites round the screen, and not doing anything particularly intelligent) Things like quake for example run at an acceptable frame rate. (But then the CPU speed of the GP2X is similar to the desktop CPU I had when quake was released, so maybe that's not surprising). Video playback is pretty acceptable too. Michael.
[pygame] Re: mouse collide question
On 6/13/06, Stephen Parkes [EMAIL PROTECTED] wrote: Hi, First post, be gentle with me etc Please ignore the above and feel free to rip me a new arse. The obvous way started to work as expected just another case of a loose nut on the keyboard ;) No idea why it didn't work first time user error I guess. sparkes -- Steve 'sparkes' Parkes - tshirts http://nerd.ws - code http://zx-81.com Autistic LUG http://autisticlug.org - blog http://sp.arkes.co.uk
Re: [pygame] Isometric Math
-How do I do picking, identifying the tile or character a user has clicked on? I can imagine calculating it for a flat iso landscape, but taking height into account all I've come up with so far is to save a bunch of bounding rectangles and test them inefficiently. Sorry for replying indirectly. I'd deleted the original email, and the archives seem to be down. Anyway, if you're rendering things in 3D w/ opengl, there is a straight forward trick that'll handle this, and I imagine something similar could be done for a strictly 2D isometric game. For example I have a hex map, which is rotated into the screen to a 3/4 perspective, along with various billboards for game-pieces that stand on the map. You can find screenshots showing what I'm taking about here: http://brass-golem.com/?page_id=7 Each hex and piece has an associated mouseMap, which is the same shape with all opaque pixels converted to pure white. When reading what the mouse is pointing to, I draw one frame of the scene off screen using the mouseMaps, with each having a colorFilter that encodes a number (this way the hexes can all share the same texture, and varry only their colorFilter). So each hex mouseMap is drawn with an RGB color of (x,y,0), while game-piece mouseMaps are drawn with RGB = (0,0,id). Then I read the color of the screen pixel the mouse points to, and decode it to precisely determine what hex/piece is picked. Hope this helps, -Jasper
Re: [pygame] pygame slow on linux (ubuntu)
James Paige schrieb: On Tue, Jun 13, 2006 at 01:53:40AM -0400, spotter . wrote: ... Kamilche, is your game now written in pygame? If so, 400 fps is pretty good...lots of optimization, i guess.. I'd bet dollars to donuts that he is using pygame+opengl Getting high framerates without hardware acceleration is rare. --- James Paige Hi no, I get similar framerates in very simple programes written in python+pygame (without OpenGL). Because its in software it depends on the cpu speed. Take a look: http://www.mypage.bluewin.ch/DR0ID/index.html ~DR0ID
Re: [pygame] pygame slow on linux (ubuntu)
On Wednesday 14 June 2006 02:42, DR0ID wrote: no, I get similar framerates in very simple programes written in python+pygame (without OpenGL). Because its in software it depends on the cpu speed. Take a look: http://www.mypage.bluewin.ch/DR0ID/index.html It's not always about cpu speed. It could be all about pixel rendering speed. On an unaccelerated X11 display, pixel rendering speed can be quite apalling even with an exceptionally grunty CPU. Richard
Re: [pygame] GP2X Game Comp
On Tue, Jun 13, 2006 at 05:36:19PM +1000, Richard Jones wrote: Hrm, I recently acquired a Nokia 770. It has a *slightly* higher resolution (800x480) but otherwise has very similar specs. Eerily similar, in fact. Hrm. I have one. Yummy. I've not had a chance to do much except import pygame and test opening a window: http://jafo.ca/getentry.html?stamp=20060526_0237 Anyway, stand by for a completely different announcement... PySpaceWar (http://mg.pov.lt/pyspacewar) runs on my Nokia 770 without any changes. At about 1 frame per second. ;-) Marius Gedminas -- The only way to learn a new programming language is by writing programs in it. -- Brian Kernighan signature.asc Description: Digital signature