Something went wrong. Try again.
A card game engine for Magic: The Gathering inspired by Card Forge
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334#pragma once#include "raylib.h"#include <map>#include <string>#include <vector>#include <flecs.h>#include <game.h>#include <uuid.h>#include <card.h>using namespace std;
class App {private: Font font; float cardWidth; map<string, map<string, Rectangle>> zones; Texture noCardImage; map<string, vector<unsigned char>> assets; flecs::world ecs; Game game; flecs::entity mainPlayerEntity; map<CardDefId, Texture> textures;public: App(uuids::uuid_random_generator* gen); App() : App(nullptr) {} void run();private: void initGame(); void updateGame(); void drawGame(); void renderDebugAreas(); void cleanGame(); void updateHandCards();};