Add swipe to like and dislike
This commit is contained in:
18
inc/App.hpp
18
inc/App.hpp
@@ -17,12 +17,24 @@ private:
|
||||
|
||||
int screenWidth, screenHeight;
|
||||
Canvas canvas;
|
||||
RenderTexture2D canvasTexure = {0};
|
||||
|
||||
Rectangle dest;
|
||||
int pos = 0;
|
||||
std::array<RenderTexture2D, 2> canvasTexure = {0};
|
||||
|
||||
float rotation = 0.0f;
|
||||
Vector2 mouseStart;
|
||||
bool validHit = false;
|
||||
float len;
|
||||
float ofset;
|
||||
|
||||
Liked topLiked = Liked::tbd;
|
||||
|
||||
Rectangle destA;
|
||||
Rectangle destB;
|
||||
Rectangle likeBox;
|
||||
Rectangle disLikeBox;
|
||||
|
||||
Unit unit;
|
||||
std::array<Unit, 2> unit = {0};
|
||||
|
||||
DnaManager manager;
|
||||
};
|
||||
|
||||
@@ -7,9 +7,9 @@
|
||||
|
||||
enum Liked
|
||||
{
|
||||
tbd,
|
||||
yes,
|
||||
no,
|
||||
tbd
|
||||
no
|
||||
};
|
||||
|
||||
struct Unit
|
||||
|
||||
Reference in New Issue
Block a user