This commit is contained in:
@@ -61,9 +61,10 @@ Prota::Prota( JD8_Surface gfx, Info* info ) : Sprite( gfx ) {
|
||||
this->entitat->animacions[4].frames = (Uint8*)malloc( 50 );
|
||||
for( int i = 0; i < 50; i++ ) this->entitat->animacions[4].frames[i] = i + 20;
|
||||
|
||||
this->entitat->animacions[5].num_frames = 12;
|
||||
this->entitat->animacions[5].frames = (Uint8*)malloc( 12 );
|
||||
this->entitat->animacions[5].num_frames = 48;
|
||||
this->entitat->animacions[5].frames = (Uint8*)malloc( 48 );
|
||||
for( int i = 0; i < 12; i++ ) this->entitat->animacions[5].frames[i] = i + 70;
|
||||
for (int i = 12; i < 48; i++) this->entitat->animacions[5].frames[i] = 81;
|
||||
|
||||
this->cur_frame = 0;
|
||||
this->x = 150;
|
||||
|
||||
Reference in New Issue
Block a user