15 lines
517 B
C++
15 lines
517 B
C++
|
/* [CONSTRUCTOR] Construction d'un xMarioGreenShell
|
||
|
=========================================================*/
|
||
|
xMarioMysteryBloc::xMarioMysteryBloc(xManager *m, int x, int y)
|
||
|
: xSpriteAnimation(
|
||
|
m,
|
||
|
"src/myst_bloc.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){0, 0, 16, 16} );
|
||
|
this->addFrame( (SDL_Rect){0, 16, 16, 16} );
|
||
|
this->addFrame( (SDL_Rect){0, 32, 16, 16} );
|
||
|
this->addFrame( (SDL_Rect){0, 48, 16, 16} );
|
||
|
}
|