Re: [pygame] Declaring variables in function as if at code's line-level

2012-03-13 Thread Brian Brown
ne else, because # they will only want it for themselves! >:3 ) lolol! Thanks again for all your replies, suggestions, and the links. ; ) And sorry for making such a big scene-- I must do some chores. Goodbye. (You may abandon the thread.) Sincerely, Matthew On Tue, Mar 13, 2012 at 3:21 P

Re: [pygame] Declaring variables in function as if at code's line-level

2012-03-12 Thread Brian Brown
Thanks for the replies everyone. I guess Python just doesn't have a "declare-variable-as-global-for-whole-module" feature. (I don't generally have problems with variable overlap because I'm very careful with naming my global variables.) (I just remembered though-- for some reason, list-type varia

Re: [pygame] Declaring variables in function as if at code's line-level

2012-03-10 Thread Brian Brown
ncerely, Matthew (Thanks Chris, for letting me know that my somewhat unclear messages were causing you frustration. I hope this clears things up.) On 3/10/12, Christopher Arndt wrote: > On 11.03.2012 01:15, Brian Brown wrote: >> Haven't I just given you one of the most profound

Re: [pygame] Declaring variables in function as if at code's line-level

2012-03-10 Thread Brian Brown
as nothing to >> do with pygame. >> >> On Sat, Mar 10, 2012 at 6:30 PM, Brian Brown wrote: >>> Hi pygame users, just a simple question-- How can one cause variables >>> at "function-level" to behave like variables at "line-level"? (With &g

Re: [pygame] Declaring variables in function as if at code's line-level

2012-03-10 Thread Brian Brown
2 at 6:30 PM, Brian Brown wrote: >> Hi pygame users, just a simple question-- How can one cause variables >> at "function-level" to behave like variables at "line-level"? (With >> basic python code) I just want to avoid using "global" over and over >>

Re: [pygame] Declaring variables in function as if at code's line-level

2012-03-10 Thread Brian Brown
: "Don't freak out at the fact that I used the "class" keyword." Thank you. Matt On 3/10/12, Brian Brown wrote: > That is not true, Chris. > > On 3/10/12, Christopher Arndt wrote: >> On 10.03.2012 23:35, Christopher Night wrote: >>> DO: >&

Re: [pygame] Declaring variables in function as if at code's line-level

2012-03-10 Thread Brian Brown
That is not true, Chris. On 3/10/12, Christopher Arndt wrote: > On 10.03.2012 23:35, Christopher Night wrote: >> DO: >> * Access variables. >> (Move game according to current-variable-status and player-input) >> >> * Output to graphics and sound card. >> (Display game acco

Re: [pygame] Declaring variables in function as if at code's line-level

2012-03-10 Thread Brian Brown
(): > globalstuff.x = 100 > > def function2(): > print globalstuff.x > > Don't freak out at the fact that I used the "class" keyword. globalstuff is > not what you normally think of as a class. That's just how you declare a > namespace in python. >

Re: [pygame] Declaring variables in function as if at code's line-level

2012-03-10 Thread Brian Brown
ancy that > name more) you can refer them inside functions without adding anything. But > if you want to assig something to the variable (eg. Create an object) you > must specify the global keyword at the beginning of the function. > > Sorry if I didn't get the point of your que

[pygame] Declaring variables in function as if at code's line-level

2012-03-10 Thread Brian Brown
Hi pygame users, just a simple question-- How can one cause variables at "function-level" to behave like variables at "line-level"? (With basic python code) I just want to avoid using "global" over and over again (in many different functions) while I want to declare, use, and delete all my game's v

Re: [pygame] Re: SDL 1.3 blit speed

2011-07-14 Thread Brian Brown
Thanks everybody for contributing! I just have so many options running through my head and am a little bit overwhelmed, so I'm just going to let this all soak in a bit. My game is still far from complete. I'm mostly in the graphics design and map editor stage. So please don't get too excited for a

Re: [pygame] Re: SDL 1.3 blit speed

2011-07-12 Thread Brian Brown
ake 1/3rd the speed > (that's your goal, right?) > > > On Tue, Jul 12, 2011 at 6:26 PM, Brian Brown wrote: > >> Yes, I'm only blitting the visible parts. It's the tile layering that >> causes 3x more blitting. (floor, carpet, and a possible wall for every >

Re: [pygame] Re: SDL 1.3 blit speed

2011-07-12 Thread Brian Brown
(I just wish for a simplified accurate answer) On Tue, Jul 12, 2011 at 6:26 PM, Brian Brown wrote: > Yes, I'm only blitting the visible parts. It's the tile layering that > causes 3x more blitting. (floor, carpet, and a possible wall for every > tile.) > Blitting the whole

Re: [pygame] Re: SDL 1.3 blit speed

2011-07-12 Thread Brian Brown
ue, Jul 12, 2011 at 11:52 AM, DR0ID wrote: > ** > On 12.07.2011 20:12, Brian Brown wrote: > > Thanks guys, > I'm not using Pyopengl. (I found it a little too hard to use.) > Pygame and SDL are working perfectly for me-- except-- I need faster > blitting. That's all, I thi

Re: [pygame] Re: SDL 1.3 blit speed

2011-07-12 Thread Brian Brown
Thanks guys, I'm not using Pyopengl. (I found it a little too hard to use.) Pygame and SDL are working perfectly for me-- except-- I need faster blitting. That's all, I think. I've designed my game's graphics to simply rely on the blitting of many 60x60 24-bit surfaces. (Approximately 300 to 500 bl

[pygame] Re: SDL 1.3 blit speed

2011-07-11 Thread Brian Brown
I've been working solo on a large game for the past two years, and I need to know if I should continue programming with Pygame and SDL. On Mon, Jul 11, 2011 at 4:32 PM, Brian Brown wrote: > Hi pygame users, will SDL 1.3 graphics be at least 3x faster than the > current SDL graphics? > Thanks. >

[pygame] SDL 1.3 blit speed

2011-07-11 Thread Brian Brown
Hi pygame users, will SDL 1.3 graphics be at least 3x faster than the current SDL graphics? Thanks.

Re: [pygame] are individual midi instruments sounds copyrighted

2010-07-19 Thread Brian Brown
I think I have an idea of what to do now. I think I will just keep making my music and if I find it is unusable for my game, I should just use it personally. Thanks everybody for all your help. I appreciate it. Matt

Re: [pygame] are individual midi instruments sounds copyrighted

2010-07-18 Thread Brian Brown
Thanks guys. My keyboard is the "DGX-230." Here is a copy of the text under the "Copyright Notice" from the "DGX-230/YPG-235 Owner's Manual": The following is the title, credits and copyright notices for the song pre-installed in this electronic keyboard: Mona Lisa from the Paramount Picture CA

Re: [pygame] are individual midi instruments sounds copyrighted

2010-07-17 Thread Brian Brown
Thanks for the advice Bryce.

Re: [pygame] are individual midi instruments sounds copyrighted

2010-07-17 Thread Brian Brown
Thanks, the reason I recorded the music to wav was because my music is totally timbre reliant-- even down to the very small details of timbre. (It's kind of just my music style.) I've tried making my songs play with different types of sound cards-- but it's just not the same.

[pygame] are individual midi instruments sounds copyrighted

2010-07-17 Thread Brian Brown
Hi pygame users, I've just recently composed many of my own music pieces using a Yamaha keyboard. I saved the exact midi sound into a wav-file on my computer by plugging the keyboard to the computer's line-in. Everything was seeming good until-- I saw this page about midi copyright: http://www.mid

Re: [pygame] BUG in make_sound()?

2009-06-17 Thread Brian Brown
gt; wrote: >> >>            hello, >> >>            I haven't been able to reproduce the problem...  I tried >>            on a ubuntu 32bit, and an osx 10.5.7 32bit python. >> >>            So maybe the bug happens only on windows. >> &g

Re: [pygame] BUG in make_sound()?

2009-05-19 Thread Brian Brown
gt; > > On Fri, May 8, 2009 at 8:31 AM, Brian Brown wrote: >> >> >> ### >> # A Pygame BUG Report: (Bug found about May 2009) >> # >> #  To Pygame People: >

[pygame] BUG in make_sound()?

2009-05-07 Thread Brian Brown
### # A Pygame BUG Report: (Bug found about May 2009) # # To Pygame People: # # (Best when viewed with a monospaced font.) # # I think I found a glitch/bug . . . # # pygame.sndarray.make_sound(