Hi Christopher,

I certainly have plans to do that. Its part of the reason I am writing the engine. At first I initially was going to write up general Python tutorials for the USA Games developer site and then realized I could ease the new game developer into Python by building some common modules for sound, music, input, etc. It would simplify a language that is already fairly simple to begin with.

Basically, what I'll be doing in terms of documentation is a two part tutorial. One part will deal with the basics of the Python language. The second part will give specific documentation on the Open G3D engine and how to use the class modules for this, that, and the other thing.

For instance, here is a quick source example of initializing and using sound in Open G3D.

#Import the audio class module
import audio

#Declare a mixer object
mixer = audio.Audio()

def main():

    #Load a sound and asign it to channel 1
    mixer.SoundOpen(1, "my_sound.wav")

    #Play the sound
    mixer.SoundPlay(1, False)

    #Position the sound to the left
    mixer.SoundPosition(1, -90, 0)

    #Position the sound to the right
    mixer.SoundPosition(1, 90, 0)

    #Stop the sound
    mixer.SoundStop()

Obviously, something like this would be explained in more depth in the actual documentation, but there really isn't much complication to this simple example. We import the audio module, declare an audio mixer object, and then in the main function we load a sound, start it playing, and move it around a bit. Very simple stuff here. However simple it might be I think it is a great intro to programming without a lot of overhead involved.

Cheers!

On 3/30/2012 11:55 AM, Christopher Bartlett wrote:
All this sounds excellent, though I'm far more interested in the open engine
than either of the specific games.  I hope that you will provide
documentation of the quality and ease of use that Philip has provided for
BGT, which is one reason I've recommended his dev kit to folk starting out.

        Christopher Bartlett


---
Gamers mailing list __ [email protected]
If you want to leave the list, send E-mail to [email protected].
You can make changes or update your subscription via the web, at
http://mail.audyssey.org/mailman/listinfo/gamers_audyssey.org.
All messages are archived and can be searched and read at
http://www.mail-archive.com/[email protected].
If you have any questions or concerns regarding the management of the list,
please send E-mail to [email protected].

Reply via email to