Readme for pyaudiogame
pyaudiogame is a toolkit for creating audio games in python
In just a few lines of code, you can have a game window running and a place for your game logic.
You can download pyaudiogame from
The Git Releases page
or, if you would like to get all the new updates
go here for the latest git version
Also checkout
The official website for the latest news
Most of what you need is in requires/. Just go in there and run:
python setup.py install
and you will be good.
The dependencies for this package are pygame, accessible_output2, and inputs.
#Hello world example import pyaudiogame spk = pyaudiogame.speech.speak #First create a basic app app = pyaudiogame.App("My hello world app") #Now make some game logic def logic(actions): """Our game logic function that gets run every iteration of our app's running loop""" if actions['key'] == "space": spk("Hello world") #Put our logic into the app app.logic = logic #Run our app app.run()
Now run the above code and press space to hear "Hello world"
See the documentation page
There you can find guides and the API.