#pragma once #include "raylib.h" class Coin { public: void Init(); void Update(); void Draw(); ~Coin(); private: Vector2 pos; // 텍스처 로드하기 // NOTE: Textures MUST be loaded after Window initialization (OpenGL context is required) Texture2D CoinSprite; // Texture loading; Rectangle frameRec; int currentFrame = 0; int framesCounter = 0; int framesSpeed = 8; // Number of spritesheet frames shown by second };