[ BigBrother2005 @ 14.08.2005. 12:13 ] @
Nedavno sam naishao na PyGame paket, da li neko ima iskustva sa njim? Na samom sajtu ima dosta dokumnetacije u vezi njega http://www.pygame.org/docs/
Ja sam ga instalirao kod sebe i probacu da kompajliram par igara koje sam skinuo.
Onio sto je zanimljivo jeste sto paket ima dosta komandi za manipulaciju CD-romovima, multimedijom i sprajtovima... tako da se moze koristiti i za druge stvari osim za programiranje igara...
EVO I PRIMERA:

Code:
CD.eject - ejects cdrom drive
CD.get_all - get all track information for the cd
CD.get_busy - checks if the cd is currently playing
CD.get_current - get current position of the cdrom
CD.get_empty - checks for a cd in the drive
CD.get_id - get device id number for drive
CD.get_init - check if cd is initialized
CD.get_name - query name of cdrom drive
CD.get_numtracks - get number of tracks on cd
CD.get_paused - checks if the cd is currently paused
CD.get_track_audio - check if a track has audio data
CD.get_track_length - check the length of an audio track
CD.get_track_start - check the start of an audio track
CD.init - initialize a cdrom device for use
CD.pause - pause playing cdrom
CD.play - play music from cdrom
CD.quit - uninitialize a cdrom device for use
CD.resume - resume paused cdrom
CD.stop - stops playing cdrom
Channel.fadeout - fade out the channel
Channel.get_busy - query state of the channel
Channel.get_endevent - get the endevent for a channel
Channel.get_queue - get the currently queued sound object
Channel.get_sound - get the currently playing sound object
Channel.get_volume - query the volume for the
Channel.pause - temporarily stop the channel
Channel.play - play a sound on this channel
Channel.queue - queue a sound on this channel
Channel.set_endevent - set an endevent for a channel
Channel.set_volume - set volume for channel
Channel.stop - stop playing on the channel
Channel.unpause - restart a paused channel
Clock.get_fps - get the current rate of frames per second


[Ovu poruku je menjao BigBrother2005 dana 14.08.2005. u 13:15 GMT+1]