Wise&mystical  1.0
Project about Europe
Loading...
Searching...
No Matches
animations.h
Go to the documentation of this file.
1#pragma once
2#include "raylib.h"
3#include "cityOperations.h"
4#include "timer.h"
5#include "quizLogic.h"
6
10#define frame1 CLITERAL(Color){ 5, 10, 23, 120 }
11#define frame2 CLITERAL(Color){ 5, 10, 23, 115 }
12#define frame3 CLITERAL(Color){ 5, 10, 23, 110 }
13#define frame4 CLITERAL(Color){ 5, 10, 23, 105 }
14#define frame5 CLITERAL(Color){ 5, 10, 23, 100 }
15#define frame6 CLITERAL(Color){ 5, 10, 23, 95 }
16#define frame7 CLITERAL(Color){ 5, 10, 23, 90 }
17#define frame8 CLITERAL(Color){ 5, 10, 23, 85 }
18#define frame9 CLITERAL(Color){ 5, 10, 23, 80 }
19#define frame10 CLITERAL(Color){ 5, 10, 23, 75 }
20
25
26 // circle radius
27 float size;
28
29 // radius update direction (positive, or negative)
31
32 // circle color
34};
35
40
41 // texture
43
44 // position
46
47 // -1(decreasing), 0(paused), 1(increasing)
48 int state;
49};
50
54void drawActiveCityAnimation(ActiveCityAnimationFrame* activeCityAnimationParts, City activeCity);
55
59void drawPopUpAnimationBottom(PopUpAnimationFrame* componentPtr, float endY, bool showComponent);
60
61
65void drawPopUpAnimationSide(PopUpAnimationFrame* quizPtr, Texture2D texture, bool showQuiz);
66
70void drawPopUpMenuHover(Rectangle confirmHitbox, Rectangle denyHitbox, Texture2D confirmHover, Texture2D denyHover, PopUpAnimationFrame* popUpAnimationFramePtr);
71
75void manageWarningAnimation(Vector2 mousePoint, City cities[40], City activeCity, PopUpAnimationFrame* warningAnimationFramePtr, PopUpAnimationFrame popUpMenuFrame, Timer* warningTimerPtr, float* warningScreentimePtr, bool* wariningVisiblePtr, bool showPopUpMenu);
76
80void drawQuizOptionsHover(Option options[4], PopUpAnimationFrame quizAnimationFrame, int index);
81
85void drawOptionIndicators(City activeCity, Option options[4], PopUpAnimationFrame quizAnimationFrame, bool optionSelected, int index);
86
87
void manageWarningAnimation(Vector2 mousePoint, City cities[40], City activeCity, PopUpAnimationFrame *warningAnimationFramePtr, PopUpAnimationFrame popUpMenuFrame, Timer *warningTimerPtr, float *warningScreentimePtr, bool *wariningVisiblePtr, bool showPopUpMenu)
Manage warning animation.
Definition: animations.cpp:237
void drawQuizOptionsHover(Option options[4], PopUpAnimationFrame quizAnimationFrame, int index)
Draw quiz options hover effect.
Definition: animations.cpp:335
void drawOptionIndicators(City activeCity, Option options[4], PopUpAnimationFrame quizAnimationFrame, bool optionSelected, int index)
Draw option indicators.
Definition: animations.cpp:355
void drawPopUpMenuHover(Rectangle confirmHitbox, Rectangle denyHitbox, Texture2D confirmHover, Texture2D denyHover, PopUpAnimationFrame *popUpAnimationFramePtr)
Draw popUp buttons hover effect .
Definition: animations.cpp:214
void drawPopUpAnimationBottom(PopUpAnimationFrame *componentPtr, float endY, bool showComponent)
Draw pop-up animation bottom across different states.
Definition: animations.cpp:97
void drawActiveCityAnimation(ActiveCityAnimationFrame *activeCityAnimationParts, City activeCity)
Draw active city animation on said location on the map.
Definition: animations.cpp:12
void drawPopUpAnimationSide(PopUpAnimationFrame *quizPtr, Texture2D texture, bool showQuiz)
Draw pop-up animation side across different states.
Definition: animations.cpp:156
Define Active city animation frame struct.
Definition: animations.h:24
Initialise cities.
Definition: cityOperations.h:8
Definition: raylib.h:220
Define Pop up animation frame.
Definition: animations.h:39
Texture2D texture
Definition: animations.h:42
Definition: timer.h:5