// Header File // Created 14/11/2003; 23:09:27 unsigned char nbrAnimBlocks; //Nombres de blocks dans la liste unsigned short AnimBlock_x [10]; unsigned short AnimBlock_y [10]; unsigned char AnimBlock_sprite [10]; unsigned char AnimBlock_counter [10]; #define BLOCKS_ANIM 10 #define BLOCKS_ANIM_COUNTER 3 #define __BLOCKS_ANIM_FREQUENCY 1285 static unsigned short __COUNTER_BLOCKS_ANIM=0; //Création de l'animation des blocks void CREATE_ANIM_BLOCK (short x_block, short y_block, unsigned char block) { //Dépassement de capacité if (nbrAnimBlocks==10) return; //Désactive interruption StartInt1=FALSE; AnimBlock_x [nbrAnimBlocks]=(x_block*BLOCK_SIZEX)+START_X; AnimBlock_y [nbrAnimBlocks]=(y_block*BLOCK_SIZEY)+START_Y; AnimBlock_sprite [nbrAnimBlocks]=block&0x0F; AnimBlock_counter [nbrAnimBlocks++]=0; //Active interruption StartInt1=TRUE; } //Affichage animation void SHOW_ANIM_BLOCK (void) { //Parcours animations for (int i=0; i