1 /* Pongix - clone of the "Pong" video game with net support
2  * Copyright (C) 2005 - Hugo Ruscitti (see AUTHORS file)
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation; either version 2 of the License, or
7  * (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
17  */
18 
19 #include "creditos.h"
20 #include "mundo.h"
21 
creditos_iniciar(struct mundo * mundo)22 Creditos * creditos_iniciar (struct mundo * mundo)
23 {
24 	Creditos * data;
25 
26 	data = (Creditos *) malloc (sizeof (Creditos));
27 
28 	if (data == NULL)
29 	{
30 		printf ("No se puede crear el m�dulo Juego\n");
31 		return NULL;
32 	}
33 
34 	data->mundo = mundo;
35 
36 	return data;
37 }
38 
39 
creditos_actualizar(Creditos * data,Uint8 * teclas)40 void creditos_actualizar (Creditos * data, Uint8 * teclas)
41 {
42 	if (teclas [SDLK_ESCAPE])
43 		mundo_cambiar_estado (data->mundo, MENU);
44 }
45 
creditos_imprimir(Creditos * data)46 void creditos_imprimir (Creditos * data)
47 {
48 	fuente_printf (data->mundo->fuente, 10, 50, \
49 			" * Hugo Ruscitti\n"
50 			" * Lucas Liendo\n"\
51 			" * Ricardo Javier Tellechea Su�rez\n"\
52 			"\n"\
53 			" Este programa se distribuye bajo la \n"\
54 			" licencia GPL; visite nuestro sitio web: \n"\
55 			"\n"\
56 			"     ** www.losersjuegos.com.ar **\n"\
57 			"\n"\
58 			" para obtener mas detalles.\n");
59 }
60 
creditos_terminar(Creditos * data)61 void creditos_terminar (Creditos * data)
62 {
63 	free (data);
64 }
65