/* [CONSTRUCTOR] Construction d'un xMarioGreenShell =========================================================*/ xMarioGreenShell::xMarioGreenShell(xManager *m, int x, int y) : xSpriteAnimation( m, "src/mario_crop.png", (SDL_Rect){ (int)( BLOC_SIZE*x+BLOC_SIZE*.1 ), (int)( BLOC_SIZE*y+BLOC_SIZE*.3 ), (int)( BLOC_SIZE*.8 ), (int)( BLOC_SIZE*.7 ) } ){ _type = "green-shell"; /* (2) On definit les clip de chaque frame */ 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} ); }