Re: [pygame] Particle Effects

2007-07-16 Thread Ian Mallett
On 7/16/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > "Giuliano Vilela" <[EMAIL PROTECTED]> wrote: >> - Blur: How can I make a particle like, leave a trail or so? Not a big >> trail, something that makes it look like it's blurring the background. Another way to leave a trail would be to ke

Re: [pygame] Finding the original monitor settings

2007-07-16 Thread Ian Mallett
I think that's what I meant. The goal here was to make a game run in fullscreen with the same width and height as the original resolution. That way my program http://www.pygame.org/projects/9/453/?release_id=772 would be unnecessary. I've seen some games do that. (selecting resolution automati

Re: [pygame] Finding the original monitor settings

2007-07-16 Thread Dave LeCompte (really)
"Rikard Bosnjakovic" <[EMAIL PROTECTED]> wrote: > On 11/07/07, Ian Mallett <[EMAIL PROTECTED]> wrote: > >> I'd like to know how to get the current view settings. > > http://www.pygame.org/docs/ref/display.html I hesitate to put words in his mouth, but I think when he says "current view", what he w

Re: [pygame] Finding the current view settings

2007-07-16 Thread Rikard Bosnjakovic
On 11/07/07, Ian Mallett <[EMAIL PROTECTED]> wrote: I'd like to know how to get the current view settings. http://www.pygame.org/docs/ref/display.html -- - Rikard - http://bos.hack.org/cv/

Re: [pygame] Particle Effects

2007-07-16 Thread kschnee
> "Giuliano Vilela" <[EMAIL PROTECTED]> wrote: >> - Blur: How can I make a particle like, leave a trail or so? Not a big >> trail, something that makes it look like it's blurring the background. Another way to leave a trail would be to keep track of a sprite's last several positions, and blit tran

[pygame] Game State Switching Example

2007-07-16 Thread kschnee
I found a better way than I'd done before to switch between the various states of a game, such as a main gameplay screen and a status screen. Attached is some example code. Something for the Cookbook, maybe?#!/usr/bin/python ## (A line needed for proper operation on Linux systems.) """ State Machi

Re: [pygame] Using PyOpenGL for 2D graphics

2007-07-16 Thread Charles Joseph Christie II
On Monday 16 July 2007 02:05:43 pm Matthew Marshall wrote: > I'll also throw in a mention of my own project, Rabbyt > (http://matthewmarshall.org/projects/rabbyt/) Like Simon's GFX, it's done > in Pyrex for speed. (The two libraries can actually be used simultaneously > without problems.) > > Her

Re: [pygame] Particle Effects

2007-07-16 Thread Will McGugan
Giuliano Vilela wrote: I read the part about the additive blending. Interesting idea, the sum of all the values of colors in the region would indeed converge to white sometimes... Guess I'll have to use the surfarray module. You might want to look at Ping Ball (http://www.pingball.com/) for s

Re: [pygame] Particle Effects

2007-07-16 Thread Giuliano Vilela
I read the part about the additive blending. Interesting idea, the sum of all the values of colors in the region would indeed converge to white sometimes... Guess I'll have to use the surfarray module. On 7/16/07, Dave LeCompte (really) <[EMAIL PROTECTED]> wrote: "Giuliano Vilela" <[EMAIL PRO

Re: [pygame] Particle Effects

2007-07-16 Thread Dave LeCompte (really)
"Giuliano Vilela" <[EMAIL PROTECTED]> wrote: > - Glow: I wanna have a system where, when a bunch of particles are really > close, they area goes all bright glowing. The basic idea you want to look into here is a technique called "additive blending". This paper might give you some ideas as to what

Re: [pygame] Using PyOpenGL for 2D graphics

2007-07-16 Thread Matthew Marshall
I'll also throw in a mention of my own project, Rabbyt (http://matthewmarshall.org/projects/rabbyt/) Like Simon's GFX, it's done in Pyrex for speed. (The two libraries can actually be used simultaneously without problems.) Here's a port of Simon's "dumb" example (quick, untested): import pyg

[pygame] Particle Effects

2007-07-16 Thread Giuliano Vilela
Hey you all =) While I was learning how to make a very simple particle system, came across this article http://www.scriptedfun.com/particle-effects-for-games/ and was able to do it in no time. It is all good so far, but I was wondering how to make some coller effects like: - Glow: I wanna have a

Re: [pygame] Using PyOpenGL for 2D graphics

2007-07-16 Thread Richard Jones
On Mon, 16 Jul 2007, Luke Paireepinart wrote: > I was confused as to how you were flipping an integer... 2s complement? :D I was just being rude :) Richard

Re: [pygame] Using PyOpenGL for 2D graphics

2007-07-16 Thread Luke Paireepinart
Richard Jones wrote: [snip other stuff not relevant to me teasing Richard] But fundamentally, GFX* is just using a GL context, and pygame and pyglet both provide one of those. Quick, untested translation of Simon's example to pyglet: 1 from pyglet import window, image 2 from gfx import gl

Re: Re: [pygame] Using PyOpenGL for 2D graphics

2007-07-16 Thread Richard Jones
Simon Wittber <[EMAIL PROTECTED]> wrote: > If you're after brain dead simple 2D OpenGL functions only, try gfx.gl > in the GFX package. (http://cheeseshop.python.org/pypi/GFX). Yep, and pyglet is intended to provide windowing, input, music, sound, video, etc. It has some "extensions" already that