31 lines
492 B
C++

#include <array>
#include "canvas/Canvas.hpp"
class App
{
public:
App() = default;
~App() = default;
void init(int screenWidth, int screenHeight);
void update();
void draw();
void deinit();
private:
int pos = 0;
int screenWidth, screenHeight;
Canvas canvas;
std::array<RenderTexture2D, 2> canvasTexure = {0};
float rotation = 0.0f;
Rectangle destB;
Rectangle destA;
Dna dna = {0};
Vector2 mouseStart;
float len;
float ofset;
bool validHit = false;
};