2016-03-13 13:53:39 +00:00
|
|
|
/* [CONSTRUCTOR] Construction d'un xMarioGreenShell
|
|
|
|
=========================================================*/
|
|
|
|
xMarioGreenShell::xMarioGreenShell(xManager *m, int x, int y)
|
|
|
|
: xSpriteAnimation(
|
|
|
|
m,
|
|
|
|
"src/mario_crop.png",
|
2016-03-16 09:17:28 +00:00
|
|
|
(SDL_Rect){
|
|
|
|
(int)( BLOC_SIZE*x+BLOC_SIZE*.1 ),
|
|
|
|
(int)( BLOC_SIZE*y+BLOC_SIZE*.3 ),
|
|
|
|
(int)( BLOC_SIZE*.8 ),
|
|
|
|
(int)( BLOC_SIZE*.7 )
|
|
|
|
}
|
2016-03-13 13:53:39 +00:00
|
|
|
){
|
2016-03-16 09:17:28 +00:00
|
|
|
_type = "green-shell";
|
2016-03-13 13:53:39 +00:00
|
|
|
|
|
|
|
/* (2) On definit les clip de chaque frame */
|
2016-03-16 09:17:28 +00:00
|
|
|
this->addFrame( (SDL_Rect){79, 213, 16, 16} );
|
|
|
|
this->addFrame( (SDL_Rect){98, 213, 16, 16} );
|
|
|
|
this->addFrame( (SDL_Rect){116, 213, 16, 16} );
|
|
|
|
this->addFrame( (SDL_Rect){135, 213, 16, 16} );
|
2016-03-13 13:53:39 +00:00
|
|
|
}
|