----------------------------------------
import venom
class Game:
def __init__( self ):
venom.Initialize( 640, 480, 16, 0 )
mesh = venom.GetMesh( "mesh.md2" )
node = venom.CreateAnimatedMeshSceneNode( mesh )
texture = venom.GetTexture( "texture.jpg" )
venom.SetNodeTexture( node, texture )
venom.AddFPSCamera( )
venom.BindInputEvent( "key escape", self.exit )
venom.Run( )
def exit( self ):
venom.Shutdown( )
mygame = Game( )
----------------------------------------
It's a pretty simple example. Because Venom is based on an event system, you can just let Irrlicht handle everything and only call to the slower Python code when needed. This keeps performance optimal. Venom is not a direct binding to Irrlicht. There will be other features as well, such as audio and network support.
The idea here is to get rid of the 'C' factor of game development to use more productive high-level languages. I think this will make it a lot easier to write games, especially as the size of your code base increases.
If you're interested in writing a serious multiplayer online game with Irrlicht, you could look into combining Venom with Twisted, a very powerful internet framework for Python. Because Venom is an extension of Python and other languages, you can use the libraries that are native to that language for increased flexibility.
I've already made quite a bit of progress, and with some luck an official release will be out soon enough. I just thought I would let you all know what i'm working on in case you were interested.
![Very Happy :D](./images/smilies/icon_biggrin.gif)
-Shane