Re: pyglet audiogame examples

2015-03-31 Thread AudioGames . net Forum — Developers room : frastlin via Audiogames-reflector
Re: pyglet audiogame examples So I have been dealing with pyglet now for a while and getting used to it's sound syntax and whatnot, but while running up against it's lack of a simple panning feature I ran into panda 3d. Have you used panda3d before? It is an incredible librar

Re: pyglet audiogame examples

2015-03-30 Thread AudioGames . net Forum — Developers room : frastlin via Audiogames-reflector
Re: pyglet audiogame examples So I have been dealing with pyglet now for a while and getting used to it's sound syntax and whatnot, but while running up against it's lack of a simple panning feature I ran into panda 3d. Have you used panda 3d before? It is an incredible librar

Re: pyglet audiogame examples

2015-03-10 Thread AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector
Re: pyglet audiogame examples Someone needs to figure those out.  I've seen a couple similar things with Pyglet, but nothing on the order of Pygame.  Yet. URL: http://forum.audiogames.net/viewtopic.php?pid=208090#p208090 ___ Audio

Re: pyglet audiogame examples

2015-03-10 Thread AudioGames . net Forum — Developers room : frastlin via Audiogames-reflector
Re: pyglet audiogame examples pygame has a lot of problems with the mod keys.Actually what is happening is that there are 2 values for mod keys. I have the full list, but you can also get the bug when you alt tab and do something in another window and come back.I have actually found quite

Re: pyglet audiogame examples

2015-03-09 Thread AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector
Re: pyglet audiogame examples Yeah. Pyglet does "lazy" imports.  I consider this stupid.  You can import pyglet.window and you can import pyglet.app but, honestly, it's pretty clear from the context that something is going on and you should look it up.  Still, meh. Really

Re: pyglet audiogame examples

2015-03-09 Thread AudioGames . net Forum — Developers room : frastlin via Audiogames-reflector
Re: pyglet audiogame examples I am going to start making a game now, so perhaps it will become more clear.What I mean by implicit is that in the code:import pygletwindow = pyglet.window.Window()pyglet.app.run()has no code telling me that the window is attached to app. For that matter, I

Re: pyglet audiogame examples

2015-03-09 Thread AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector
Re: pyglet audiogame examples I don't know what you're doing with events, but either there's a major bug that I haven't found out yet, the programming guide is lying, or you're doing something wrong.  Have you read this section of it?As for the variables, well, yes

Re: pyglet audiogame examples

2015-03-09 Thread AudioGames . net Forum — Developers room : frastlin via Audiogames-reflector
Re: pyglet audiogame examples OK, that is a little more of what I normally would do, have something like:def on_key_down(key, mods): if key == player.key_list['jump']:   player.jump()That way we cut out half of the code for the model tick function.I have been reading pyglet'

Re: pyglet audiogame examples

2015-03-09 Thread AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector
Re: pyglet audiogame examples The first one you have is probably more applicable to side-scrollers.  The second one is probably more applicable to an RTS.  They're both right.A few things can make it simpler:Everything that can move has a velocity attribute.  Every tick, whatever

Re: pyglet audiogame examples

2015-03-09 Thread AudioGames . net Forum — Developers room : frastlin via Audiogames-reflector
Re: pyglet audiogame examples Oh thanks, that website will be super helpful.So you have the game code in the model in tick that says something like:if flags.jump: player.jump() flags.jump = FalseIn the control or client you have:key_dict = {"run_forward": "up", "r

Re: pyglet audiogame examples

2015-03-09 Thread AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector
Re: pyglet audiogame examples Well, it doesn't have to be queues.  And in all honesty, allowing the game to play sounds directly isn't horrible.  I'm going to go into my current project a bit.  This is advanced, and you don't have to do it this way.  You probably s

Re: pyglet audiogame examples

2015-03-09 Thread AudioGames . net Forum — Developers room : frastlin via Audiogames-reflector
Re: pyglet audiogame examples Does the model queue events onto both the view's queue and the controller's queue?Then both the controller and view run through the items in their prospective queues either every loop (for view) or when an action is pressed (for the controller view)

Re: pyglet audiogame examples

2015-03-08 Thread AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector
Re: pyglet audiogame examples no. You don't want threads here.  What you do want is to pass on events as soon as you see them, at least if that's possible.  Even if it's not, you don't want to expose it this way. It might be later, and it's best not to introduc

Re: pyglet audiogame examples

2015-03-08 Thread AudioGames . net Forum — Developers room : frastlin via Audiogames-reflector
Re: pyglet audiogame examples So essentially there is a separate thread that waits for events to happen and when events happen, they run through the events scheduled in the stack?That is why you can't have a dict, because a dict is dependent on everything going on in frames where a

Re: pyglet audiogame examples

2015-03-07 Thread AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector
Re: pyglet audiogame examples Okay.First, the Pyglet speech thing.  Turn typing echo off or put the screen reader in sleep mode.  Count on keys being spoken.  Whether or not the keys will get spoken depends so ridiculously on the screen reader it's not even funny.  None of us can take

Re: pyglet audiogame examples

2015-03-07 Thread AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector
Re: pyglet audiogame examples Okay.First, the Pyglet speech thing.  Turn typing echo off or put the screen reader in sleep mode.  Count on keys being spoken.  Whether or not the keys will get spoken depends so ridiculously on the screen reader it's not even funny.  None of us can take

Re: pyglet audiogame examples

2015-03-07 Thread AudioGames . net Forum — Developers room : frastlin via Audiogames-reflector
Re: pyglet audiogame examples I was looking at pyglet again and I am wondering if anyone knows why with pygame, when I press a key like space, my screenreader is silent, but with pyglet, it says the letter or key, as if it is in an edit box? That is another reason why I didn't like p

Re: pyglet audiogame examples

2015-03-07 Thread AudioGames . net Forum — Developers room : frastlin via Audiogames-reflector
Re: pyglet audiogame examples I am going to experiment with both, but I am basically doing that, but in half the lines of code. I guess it may be a little more resource intensive as I am refreshing the dict each iteration of the loop, but not enough to matter...I agree that the clarity of

Re: pyglet audiogame examples

2015-03-07 Thread AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector
Re: pyglet audiogame examples Yes. URL: http://forum.audiogames.net/viewtopic.php?pid=207798#p207798 ___ Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman

Re: pyglet audiogame examples

2015-03-07 Thread AudioGames . net Forum — Developers room : frastlin via Audiogames-reflector
Re: pyglet audiogame examples Rob, a guy on the pyglet list is doing something with AVbin to make it more friendly.But I need something I can hand out to everyone on every platform that doesn't need them to do anything but run my game. AVbin currently requires them to install a 3rd

Re: pyglet audiogame examples

2015-03-07 Thread AudioGames . net Forum — Developers room : dhruv via Audiogames-reflector
Re: pyglet audiogame examples Hi.I was just able to get AVbin and install it, and afterwards just doimport pygletsource=pyglet.source.load("path/to/blah.mp3")player=pyglet.media.Player()player.queue(source)player.play()What specificly are you having problems with?

Re: pyglet audiogame examples

2015-03-07 Thread AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector
Re: pyglet audiogame examples No, you're not.class BaseScreen(object): def on_key_down(self, key, modifiers): pass def on_key_up(self, key, modifiers): pass def on_mouse_move(self, x, y): pass def on_tick(self, dt): passAnd then make everyone subclass that.  Or use P

Re: pyglet audiogame examples

2015-03-07 Thread AudioGames . net Forum — Developers room : frastlin via Audiogames-reflector
Re: pyglet audiogame examples I think having 2 systems is a little much in one game, but I may consider doing WXPython and something else.Having native edit boxes and menus would be very very very awesome.I am not 100% sure what you mean by having an empty bass class with empty

Re: pyglet audiogame examples

2015-03-07 Thread AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector
Re: pyglet audiogame examples Everything that's actually worth using does the WXPython main loop.  It's called the event loop, and you'll probably end up just duplicating it yourself.  Twisted, Pyglet, lots of stuff.  The fact that Pygame doesn't has always baffled me a

Re: pyglet audiogame examples

2015-03-07 Thread AudioGames . net Forum — Developers room : frastlin via Audiogames-reflector
Re: pyglet audiogame examples LOL I through that together in 20 minutes and wanted to be very explicit.I think probably using decorators is the best idea for doing this actually. But getting a newbie to understand decorators would be horribly difficult.I like giving a dict to the

Re: pyglet audiogame examples

2015-03-06 Thread AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector
Re: pyglet audiogame examples Yeah. I think so.  You seem to get the gist anyway.But:First, you can use Pyglet for everything and Pygame for sound, I believe.  I'm pretty sure that Pygame doesn't specifically take over the main thread like Pyglet does, and coding this stuff you

Re: pyglet audiogame examples

2015-03-06 Thread AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector
Re: pyglet audiogame examples Yeah. I think so.  You seem to get the gist anyway.But:First, you can use Pyglet for everything and Pygame for sound, I believe.  I'm pretty sure that Pygame doesn't specifically take over the main thread like Pyglet does, and coding this stuff you

Re: pyglet audiogame examples

2015-03-06 Thread AudioGames . net Forum — Developers room : frastlin via Audiogames-reflector
Re: pyglet audiogame examples OK, I believe I get it now. That is not hard to do at all and I see how pyglet runs its event handler. I am looking back at pyglet and I remember why I didn't go far into pyglet. In order to play sounds, one needs AVbin, something I can't get to

Re: pyglet audiogame examples

2015-03-06 Thread AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector
Re: pyglet audiogame examples yes.  Though I have never heard them called widget trees.  If you are thinking WX event handling, that's similar but not the same.  In audiogame_engine, the topmost screen always gets the event first; if it doesn't handle it or wants to pass it th

Re: pyglet audiogame examples

2015-03-06 Thread AudioGames . net Forum — Developers room : frastlin via Audiogames-reflector
Re: pyglet audiogame examples So I an on a mission now to understand this type of event handling.I see in audiogame_engine's readme:"""The above may seem complicated to those who use the approach of putting all game logic in one file, stacking if statements 5 and 6 leve

Re: pyglet audiogame examples

2015-03-06 Thread AudioGames . net Forum — Developers room : frastlin via Audiogames-reflector
Re: pyglet audiogame examples I'm not 100% sure what you mean by event layering. Do you mean widget trees?Where you populate a list with events and if one returns True on a key press the iteration through the event list stops and that event is processed?I personally use something a l

Re: pyglet audiogame examples

2015-03-05 Thread AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector
Re: pyglet audiogame examples The app section of the pyglet documentation looks fine to me; you just call app.run and you're done with it.  The thing you might be interested in is pyglet.window, and such.  But I've never even come close to having a need for anything but pyglet.ap

Re: pyglet audiogame examples

2015-03-05 Thread AudioGames . net Forum — Developers room : frastlin via Audiogames-reflector
Re: pyglet audiogame examples The Appsection of pyglet is too confusing. The docks are horrible and if I wish to know how to do something, I have not yet figured out how to find what I am looking for.But pyaudiogame is much, much, much higher level than pyglet. It has, for example, a UI

Re: pyglet audiogame examples

2015-03-05 Thread AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector
Re: pyglet audiogame examples What do you mean by scripts?  The only thing Pyglet is really good at for an Audiogame is event handling, whether that be input or timing or whatever.  You're going to eventually need everything Pyglet is offering you in that respect, regardless of wha

Re: pyglet audiogame examples

2015-03-05 Thread AudioGames . net Forum — Developers room : frastlin via Audiogames-reflector
Re: pyglet audiogame examples Hello,I did some stuff with piglet, but didn't like their documentation or the way they handle scripts. I didn't get past the first part.I am in the process of writing a python librarypyaudiogamethat is much more simple to use than piglet (but so fa

Re: pyglet audiogame examples

2015-03-02 Thread AudioGames . net Forum — Developers room : Guitarman via Audiogames-reflector
Re: pyglet audiogame examples Oh okay got it now for some reason I was expecting an executable file. URL: http://forum.audiogames.net/viewtopic.php?pid=207194#p207194 ___ Audiogames-reflector mailing list Audiogames-reflector@sabahattin

Re: pyglet audiogame examples

2015-03-02 Thread AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector
Re: pyglet audiogame examples Erm. You want pip instal pyglet at a terminal.If you don't have pip and you're using Python 2.7.9, I believe you want python -m ensurepip at a terminal.  But I haven't upgraded because that's kinda painful.Edit: Wheels are a thing pip proce

Re: pyglet audiogame examples

2015-03-02 Thread AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector
Re: pyglet audiogame examples Erm. You want pip instal pyglet at a terminal.If you don't have pip and you're using Python 2.7.9, I believe you want python -m ensurepip at a terminal.  But I haven't upgraded because that's kinda painful. URL: http://forum.audiogames.n

Re: pyglet audiogame examples

2015-03-02 Thread AudioGames . net Forum — Developers room : Guitarman via Audiogames-reflector
Re: pyglet audiogame examples There it is but what on earth is a whl file? I decided to get the zip file instead since windows didn't recognize the other one. URL: http://forum.audiogames.net/viewtopic.php?pid=207191#p207191 ___ Audio

Re: pyglet audiogame examples

2015-03-02 Thread AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector
Re: pyglet audiogame examples Pyglet is working fine on 2.7.  Pip install pyglet, that is all. URL: http://forum.audiogames.net/viewtopic.php?pid=207189#p207189 ___ Audiogames-reflector mailing list Audiogames-reflector@sabahattin

Re: pyglet audiogame examples

2015-03-02 Thread AudioGames . net Forum — Developers room : Guitarman via Audiogames-reflector
Re: pyglet audiogame examples Hi Camlorn.After I saw this topic I looked up pyglet for future use and there doesn't seem to be a version for python 2.7. The highest version they seem to have is for python 2.6 unless I missed it somehow on the website. Pyglet does sound very interesti

Re: pyglet audiogame examples

2015-03-02 Thread AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector
Re: pyglet audiogame examples You'll want to start with the Pyglet examples because they'll show you how Pyglet itself works.  The logic is not something I can comment on because that's kind of specific to whatever you're doing.  You might try something like tic-tac-t

pyglet audiogame examples

2015-03-02 Thread AudioGames . net Forum — Developers room : dhruv via Audiogames-reflector
pyglet audiogame examples Hello,So i've been messing with python. Again. Wx python appears to be an awesome toolkit, though wxglade and pythoncard don't really work...but anyway. Are there any audiogame examples...or any examples altogether for games in pyglet? I don't re