New impressive streak animation
This commit is contained in:
@@ -11,6 +11,8 @@
|
||||
#define ANIM_DURATION 1
|
||||
#define LINEBREAK 16 //Linebreak offset
|
||||
#define HITFEEDSLOTS 5
|
||||
#define IMPRESSIVESTREAK 3 //reach amount of hit streaks to activate impressive screen
|
||||
#define IMPRESSIVEHIT 2
|
||||
|
||||
/* Data structures */
|
||||
typedef struct {
|
||||
@@ -41,6 +43,7 @@ typedef struct hitfeed {
|
||||
char history[HITFEEDSLOTS][50]; //Prints the last 3 streaks
|
||||
char beststreak[50]; //Prints the best streak
|
||||
int besthit; //Prints the best hit number e.g. Godlike with 15 hits
|
||||
int impstreakcounter; //if this counter hits IMPRESSIVESTREAK there'll be an animation
|
||||
} hitfeed;
|
||||
|
||||
/* Function prototypes */
|
||||
@@ -64,6 +67,7 @@ int centerDiff(int coordinate, char *str);
|
||||
void readRandomLine(char *file, char *result);
|
||||
void trollHitScreen(game_state *gs, hitfeed *hf, int hits);
|
||||
void addHitToFeed(hitfeed *hf, char *streak, int hit);
|
||||
void trollHandleImpressive(hitfeed *hf, game_state *gs, int hits);
|
||||
void drawFigure(game_state *gs, int drawNext);
|
||||
void animateLineClear(game_state *gs, int line, int offsetMultiplier);
|
||||
void printHitFeed(game_state *gs, hitfeed *hf);
|
||||
|
Reference in New Issue
Block a user