Quantcast
Channel: Help with your own apps (new posts)
Browsing all 15 articles
Browse latest View live

Event handling and threads: Event handling and threads

I just started using python and pygame so my knowledge is slightly limited. I have started programming a game and already have a basic underlying set of objects and game system. WHat I am doing in my...

View Article



Event handling and threads: Re: Event handling and threads

You have described results! The causes may be different: Use hardware acceleration flag pygame.HWSURFACE | pygame.DOUBLEBUF when creating display surface: pygame.display.set_mode((width,height),...

View Article

Event handling and threads: Re: Event handling and threads

Oh And I've forget to tell you that for simple games with 2D graphic only there is no need to use threads. Low performance mens bad configuration or wrong sprites/group classes used or using...

View Article

Event handling and threads: Re: Event handling and threads

Im sorry my questions are a bit noob :P.Thats why I thought id post it here so i dont bother people with proper problems and you seem to know alot. Thanks for the quick reply.I have set the hardware...

View Article

Event handling and threads: Re: Event handling and threads

i didnt call event.pump() sigh,im such an idiot

View Article


Event handling and threads: Re: Event handling and threads

Also you can consider to use timers to set good FPS rate. event.pump() should be used if You use non standard event functions, e.g. you check every key if is pressed rather that wait for events. Also...

View Article

images and blitting: images and blitting

Hi, I'm new so bear with me. I am putting together a game called "flyswat" which has flies crawling over the screen, and a swatter you use to hit them. Now I have these questions. 1. I have images for...

View Article

images and blitting:

Just to follow up, would it make sense to use surfarray? I could load the surface pixels into a 2D array and manipulate these values..

View Article


sprites on sprites: sprites on sprites

How do I insure that moving sprites are on top of non-moving sprites. Currently, some moving sprites go over non-moving and some go under.

View Article


images and blitting:

Fixed - the solution is to blit pieces of background rectangles into the background, THEN move all the sprites and then re-blit them in their new positions.

View Article

images and blitting:

use pygame.transform

View Article

sprites on sprites: Re: sprites on sprites

Solution is fairly simple! And it give more flexibility. Sort your sprites according to "depth". By depth I mean "distance" to viewer. Eg. You want your "static" sprites to be in background, and...

View Article

stupid pygame import - something not ok...: stupid pygame import - something...

See this code (understand why I commented out first line): from OpenGL.GL import * from OpenGL.GL import glEnable, GL_DEPTH_TEST, glShadeModel, GL_SMOOTH, glClearColor, GL_CULL_FACE, GL_BLEND,...

View Article


Pygame OpenGL: Pygame OpenGL

How to use opengl in a pygame app, without using the 3D library OpenGL because the app is in 2D?? I tried to put an object to appear in my opengl app pygame, but the error: "pygame.error: Cannot blit...

View Article

Rotating a sprite with pygame: Rotating a sprite with pygame

Hi, I've just started using Python/Pygame as a hobby. I've gotten the code to draw my Plane.png and move it using the wsad keys, and I mapped the q and e keys to rotate it which it does, but each time...

View Article

Browsing all 15 articles
Browse latest View live




Latest Images