Add swipe to like and dislike

This commit is contained in:
2025-01-15 15:08:09 +01:00
parent 6a38b6df53
commit 73a9f70467
4 changed files with 122 additions and 28 deletions

View File

@@ -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;
};

View File

@@ -7,9 +7,9 @@
enum Liked
{
tbd,
yes,
no,
tbd
no
};
struct Unit