Because python modules are just like classes, I tend to avoid the
singleton pattern in python and simply use module-level variables. For
example, in my game I have:
---globals.py---
import pygame
pygame.display.init()
screen = pygame.display.set_size(...)
# a handful other commonly used vari
Summery:
How do I organize my data structures to read or pass my Game() object in
ship.py ?
Here is Pseudo code of what i'm talking about:
http://pastebin.com/m985fe2f
Long:
How do you use your 'game' class? I created one class that handles screen
creation, game main loop, list of Sprites, etc.
Sounds great Tyler, it looks like it's about equal to the current
version, plus the support for more than just mpeg, which is good
enough for my purposes. Seeking and subtitles would really put it
ahead of anything else. Thanks so much for taking this project on!
On Fri, Jul 17, 2009 at 7:48 AM,
I don't have anything running OS X to test it on, but it is possible
the colors are in a different order. (BGR vs RGB). Try pointing the
camera at a test pattern and seeing if any colors are switched.
http://en.wikipedia.org/wiki/File:SMPTE_Color_Bars_16x9.svg
Nirav
On Fri, Jul 17, 2009 at 10:0
Hi everybody,
What the movie module is capable of doing right now is:
-Video
-Audio
-resize the screen
-pause, unpause
-stop
-play, with a loops argument that works just like the one in mixer
-get, set, surface support
So we have basic functionality so far for it. There is also a vlc
backend, th
k, the SGStopPreview whould be SGStop.
I fixed this in the latest commit
Grtz
On 17-jul-09, at 04:47, René Dudfield wrote:
awesome. It's working now :)
except I had to comment out the SGStopPreview function... since the
symbol doesn't exist on my system. From google.com/codesearch
searches,
Midterm report
##
With the midterm evaluation behind us I thought it would be useful to
post a update
on the progress on the camera module for Mac OSX. The current version on
github.com/ab3/pygame-mirror/ can read a frame from the camera and
copy it to
the surface. There is stil