164x Filetype PDF File size 0.25 MB Source: www.medien.ifi.lmu.de
Multimedia-Programmierung Übung 2 Ludwig-Maximilians-Universität München Sommersemester2018 Ludwig-Maximilians-Universität München Multimedia-Programmierung – 2 - 1 Today … oldie but goldie Ludwig-Maximilians-Universität München Multimedia-Programmierung – 2 - 2 • Sam Lantinga, 1998: Simple DirectMedia Layer (SDL) framework, to simplify porting games among platforms – Commonandsimple waytocreatedisplaysandprocessinput abstracting from platform particularities – Originally written in C • Pygameisa language binding for SDL to the Python language Download: http://pygame.org/docs/ref/index.html Literature: W. McGugan, Beginning Game Development with Python and Pygame, Apress 2007 Ludwig-Maximilians-Universität München Multimedia-Programmierung – 2 - 3 Pygame Modules pygame.cdromAccesses and controls pygame.musicWorks with music and CD drives streaming audio pygame.cursors Loads cursor images pygame.overlayAccesses advanced pygame.displayAccesses the display video overlays pygame.drawDraws shapes, lines, and pygameContains high-level Pygame points functions pygame.event Manages external pygame.rect Manages rectangular events areas pygame.font Uses system fonts pygame.sndarray Manipulates sound pygame.imageLoads and saves an data image pygame.sprite Manages moving images pygame.joystick Uses joysticks and pygame.surface Manages images and similar devices the screen pygame.key Reads key presses from pygame.surfarray Manipulates image the keyboard pixel data pygame.mixer Loads and plays sounds pygame.time Manages timing and pygame.mouseManages the mouse frame rate pygame.movie Plays movie files pygame.transform Resizes and moves images Ludwig-Maximilians-Universität München Multimedia-Programmierung – 2 - 4
no reviews yet
Please Login to review.