From 8218792cbbd00da3530826330270a20906fefad5 Mon Sep 17 00:00:00 2001 From: Olivier Gayot Date: Wed, 7 Jan 2015 22:38:45 +0100 Subject: add the warrior gobelin as a real class Signed-off-by: Olivier Gayot --- main.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'main.c') diff --git a/main.c b/main.c index 3167cb0..acbd749 100644 --- a/main.c +++ b/main.c @@ -214,6 +214,7 @@ int Fchargerimages (SURFACES *surfaces) int i; LOAD_IMAGE(Pgobelin, "images/gobelin.bmp"); + LOAD_IMAGE(red_warrior_gobelin, "images/gobelin.bmp"); LOAD_IMAGE(Ppaladin, "images/paladin.bmp"); LOAD_IMAGE(Ppretre, "images/pretre.bmp"); LOAD_IMAGE(Pvoleur, "images/voleur.bmp"); @@ -242,6 +243,7 @@ int Fchargerimages (SURFACES *surfaces) //définition de la transparence alpha dans les surfaces SDL_SetColorKey(surfaces->Pgobelin,SDL_SRCCOLORKEY,SDL_MapRGB(surfaces->Pecran->format,0,255,18)); + SDL_SetColorKey(surfaces->red_warrior_gobelin, SDL_SRCCOLORKEY,SDL_MapRGB(surfaces->Pecran->format,0,255,18)); SDL_SetColorKey(surfaces->Ppretre,SDL_SRCCOLORKEY,SDL_MapRGB(surfaces->Pecran->format,39,189,31)); SDL_SetColorKey(surfaces->Ppaladin,SDL_SRCCOLORKEY,SDL_MapRGB(surfaces->Pecran->format,189,31,31)); @@ -266,6 +268,7 @@ void Fdechargerimages (SURFACES *surfaces)//dechargement des surfaces alouées int i; SDL_FreeSurface(surfaces->Pecran); SDL_FreeSurface (surfaces->Pgobelin); + SDL_FreeSurface(surfaces->red_warrior_gobelin); SDL_FreeSurface (surfaces->Ppaladin); SDL_FreeSurface (surfaces->Ppretre); -- cgit v1.2.3