. Blitting is expensive, and with
OpenGL you can just avoid it.
There's a bit of up front learning cost if you're not familiar with these
tools, but the payoff comes quickly and is well worth it.
-Jasper
On Tue, Mar 1, 2022 at 3:10 PM Irv Kalb wrote:
> I am developing a game but I'm running into som
process to know how
feasible that is.
On Wed, Jul 14, 2021 at 4:50 PM Andrew Baker wrote:
> I'd assume that deep under the hood, one should be able to advance
> whatever read pointer to the soundbuffer is used by the channel.
>
> Is that correct?
>
>
> On Wed, Jul 14, 2021,
and only do the slice + flip back to Sound but that's premature
> optimization right now.
>
> On Wed, Jul 14, 2021, 03:15 Jasper Phillips
> wrote:
>
>> Alas, that is precisely what I did:
>>
>> def clipEffect( effect, startTime ):
>> raw =
distorts the audio, though the original Sound plays fine...
Hi Jasper. Try the fourth answer here
> <https://stackoverflow.com/questions/57960451/how-can-i-play-a-portion-of-an-audio-file-in-a-loop-in-pygame>,
> by Ted Klein Bergman.
> On 7/13/2021 4:24 PM, Jasper Phillips wrote:
some
format details I don't know.
Does anyone have any tips for hacking raw Sound data, or perhaps some
better approach?
-Jasper
at the start of that PEP's
introduction.
If anything such standardization aught to make it easier to work with
multiple event loops.
-Jasper
It's not Pygame strictly, but if you're using Pyopengl w/ Pygame, you can
pass such a tint as a color param when drawing a textured Quad in
Pyopengl, without needing to monkey with surfaces at all.
-Jasper
I've been searching around, trying to see if there is a 'best practice
way
of doing
especially if some thought had gone into a GUI testing
framework.
-Jasper
Kamilche wrote:
I've looked at wxPython, PGU, Ocemp GUI, PyUI, and other GUI toolkits
available for Python. Each of them had, to my eyes, severe flaws that
prevented me from using them for my apps. Therefore, I've spent
= os.path.dirname( filePath )
if not os.path.exists( fileDir ):
os.makedirs( fileDir )
pilImage.save( filePath )|
-Jasper
to be
something you need for Tile Maps.
-Jasper
thanks to you all, it is working beautifully ^__^
Oh yeah, one more minor point. Perhaps I'm the only one daft enough to
forget about map() in the heat of the moment, but avoid naming anything
map, which Python will happily let you do! I'm still
array slicing tricks (especially the
funkier NumPy ones), but in practice that doesn't seem to be something
you need for Tile Maps.
-Jasper
Jeff Cagle wrote:
Jasper wrote:
More specifically, it's tricky to write tests for GUIs and real time
applications, or at least I don't know of any good python tools for
doing so.
I've put some thought into a robust GUI testing framework, but how
exactly to go about it isn't a simple matter
,
though I don't need it so haven't thought about it much.
Anyway, I'm guessing I'm not the only one with such problems... Is
there any interest on collaborating on such testing framework
extensions, of the sort that'd be useful for games in general?
-Jasper
). You only really need the first 10 or so to get started;
afterwards you can look at the later ones and still follow what they're
doing, even if they aren't in Python.
-Jasper
Ian Mallett wrote:
Try looking at glOrtho2D() or something like that... Why do you want
to use PyOpenGL for 2D-ness
Perhaps useful. Seems like premature optimization to me though, and
unlikely to gain enough to be worth the pain of dealing with threads.
-Jasper
René Dudfield wrote:
I'm not sure this is true or not, but it's something I think is the
case (untested)...
It seems that running twisted
saved me from (re)writing tons of code,
and I've undoubtedly avoided plenty of nasty networking bugs as well.
What would you hope to gain by rolling your own networking code?
-Jasper
to Numeric
would definitely be nice!
-Jasper
burn
too much video card ram.
-Jasper
-154851_screen1.jpg
-Jasper
carteString = '''\
0 1 2 3 4 5 6 7 8 9 10
111213141516171819
G, my code got it's line breaks mangled. Try #2:
symbolToTerrain = {
'_' : Plains,
'@' : Fertile,
'+' : Desert,
'^' : Mountains,
'*' : Hills,
'$' : Forest,
'%' : Water,
'~' : River,
'' : WideRiver,
'=' : Roads,
'#' : Bridge,
'!' : Cliff,
}
carteString =
Arg! I hate thunderbird. To avoid further screw-ups, I've just posted
the source for the larger map here (which is actually a .py file):
http://brass-golem.com/wp-content/uploads/2006/12/showmap.txt
Ignore the comments about kludges...
-Jasper
Jasper wrote:
G, my code got it's line
I was giving a demo of my game today on a friend's widescreen laptop,
and my pygame/opengl app broke! Does anyone else have any experience
with pygame windows being redrawn incorrectly after being dragged across
the windows desktop?
-Jasper
Luke Paireepinart wrote:
Jasper wrote:
I was giving a demo of my game today on a friend's widescreen laptop,
and my pygame/opengl app broke! Does anyone else have any experience
with pygame windows being redrawn incorrectly after being dragged
across the windows desktop?
I don't think
No lag here, although I'm on XP. I'm getting like 1200 FPS though, so
if there were such a periodic slowdown I probably wouldn't notice.
-Jasper
Farai Aschwanden wrote:
Nice looking rain and proper code! I experienced a tiny lag like
every 3 seconds. I experienced that also in other games
. numpy.
I've had less trouble getting crossplatform C++ code to statically
compile than I'm having sorting this out for just Windows.
-Jasper
:\\BrassGolem\\Realms\\dist\\lib\\shared.zip\\OpenGL\\version'
-Jasper
Sami Hangaslammi wrote:
I'd still like to hear why the original poster found PyPack
unsuitable, (so that I could improve it), since it, for example, gets
around both of the numpy/Numeric problems posted by Brian.
Partly because it apparently didn't like having an entry script
somewhere other
Bob Ippolito wrote:
On 9/28/06, Jasper [EMAIL PROTECTED] wrote:
Sami Hangaslammi wrote:
I'd still like to hear why the original poster found PyPack
unsuitable, (so that I could improve it), since it, for example, gets
around both of the numpy/Numeric problems posted by Brian.
Partly
no indication of how to do this... Is there a way to
force Pypack to import missing things? I don't know, and so I'm back to
futzing with py2exe, for which my .exe is presently looking for
datafiles in a different place than py2exe put them. :-(
-Jasper
Greg Ewing wrote:
Jasper wrote:
The resulting .exe can't find all of it's needed parts, and
apparently includes a vast array of stuff that isn't needed.
This is tangential to the OP's problem, but last
time I tried to use py2exe, it seemed to insist
on including tkinter in the executable
.
Is there anything else worth trying? Am I stuck fiddling with py2exe,
or rolling my own solution?
I'm beginning to seriously consider shipping Python, half a dozen
libraries, and .pyc files as a possible improvement. :-/
-Jasper
http://brass-golem.com
Has PyOgre stabilized yet?
andrew baker wrote:
Blender and/or OGRE
--
Andrew Ulysses Baker
failrate
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
33 matches
Mail list logo