15 lines
533 B
C++
15 lines
533 B
C++
/* [CONSTRUCTOR] Construction d'un xMarioGreenShell
|
|
=========================================================*/
|
|
xMarioGreenShell::xMarioGreenShell(xManager *m, int x, int y)
|
|
: xSpriteAnimation(
|
|
m,
|
|
"src/mario_crop.png",
|
|
(SDL_Rect){BLOC_SIZE*x, BLOC_SIZE*y, BLOC_SIZE, BLOC_SIZE}
|
|
){
|
|
|
|
/* (2) On definit les clip de chaque frame */
|
|
this->addFrame( (SDL_Rect){4*19, 210, 20, 20} );
|
|
this->addFrame( (SDL_Rect){5*19, 210, 20, 20} );
|
|
this->addFrame( (SDL_Rect){6*19, 210, 20, 20} );
|
|
this->addFrame( (SDL_Rect){7*19, 210, 20, 20} );
|
|
} |