Re: are there any exercises that is based off the python documentation?
There's historically been little attention paid to accessibility, and by extention no documentation or guides of any kind for graphics programming for the blind, because reasons, I guess. Generally speaking though, all graphics on a computer consist of geometry and math, you could draw an entire scene in code and never see a single pixel. On the surface its hard to see why, but those same scenes can be used for spacial geometry, collision, environmental and object design, etc. A 3D game needs 3D geometry for proper collision, visually seeing it is more a matter of presentation, but its function and purpose in the larger program remains the same. A good example for this would be tools like OpenSCAD which uses scripting to create 3D models, and using AudiMesh3D for visualizing the models with sound. Same underlying data, different ways of viewing it.
@11
Which examples do you mean exactly? If you mean the pygame audio example, you can check that out here:
import pygame
from pygame import mixer
import sys
def Example():
#initialize pygame
pygame.init()
#initialize sound mixer
mixer.init()
#create display
window = pygame.display.set_mode([640,480])
#load sound
sound = mixer.Sound('tone5.wav')
#main update loop while True: for event in pygame.event.get(): if event.type == pygame.KEYDOWN: #if space is pressed, play sound if event.key == pygame.K_SPACE: sound.play() #if escape is pressed, quit if event.key == pygame.K_ESCAPE: pygame.quit() sys.exit(0) #update window pygame.display.update() Example()
I've also mentioned my OpenAL examples elsewhere which you can get [here] for advanced audio, I can also provide an example with pygame using OpenAL.
-- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector