I ran into an issue with Pyglet and that is depth sorting. I still have not 
thought of a solution other than to make an orthographic projection. Even 
still I have no idea how to set this up. I am trying to build a game engine 
on top of Pyglet. I already have many features and those that are lacking 
Pyglet has to offer. I just need help learning the last bits to get a 
functional game engine.

My game engine is designed to help GML programmers move over to Python and 
Pyglet. GML(Game Maker Language) is a scripting language. In Game Maker you 
can take an instance of an object and change its depth at any given time in 
the game which changes the order of when it is drawn to the screen. You 
should be able to do this by the following Python code:

ATuple = (100,100)
goblin = instance.create(Goblin,ATuple)
goblin.depth = (any value between -99999 and 99999 I think is what GML 
supports)

With an orthographic view you could just change the Z value correct? that 
could be the same as depth when the programmer is making a 2d game?

I know this is kinda multiple questions but I am trying to learn alot.

-- 
You received this message because you are subscribed to the Google Groups 
"pyglet-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/pyglet-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to