Re: are there any exercises that is based off the python documentation?
There are other uses for graphics programming other than for visual displays, it being just one of a number of ways of conveying spacial information. For example, AudiMesh3D displays 3D models as sound, to do this it loads a 3D model and draws it visually to the frame buffer, then it extracts the depth buffer image and reprocesses it into sound, or braille output if preferred. All graphics on a computer consist of geometry and math, arrays of data and information, just like a 2D grid for maps, the only difference is in how that information is conveyed to the user, or how its used for your particular application.
@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