10.07.2015 Views

[ebook]Programacion de videojuegos con SDL

[ebook]Programacion de videojuegos con SDL

[ebook]Programacion de videojuegos con SDL

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

P R O G R A M A C I Ó N D E V I D E O J U E G O S C O N S D Lvoid finaliza() {}// <strong>de</strong>struimos la fuente <strong>de</strong> letraTTF_CloseFont(fuente);// <strong>de</strong>strimos la musicaMix_FreeMusic(musica);// cerramos el joystickif (<strong>SDL</strong>_JoystickOpened(0)) {<strong>SDL</strong>_JoystickClose(joystick);}int InitSprites() {int i;// Inicializamos el generador <strong>de</strong> números aleatoriossrand( (unsigned)time( NULL ) );// Inicializamos el array <strong>de</strong> balasfor (i=0 ; i

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!