mirror of
https://github.com/Nimac0/SDL_Minigame
synced 2026-01-12 10:13:42 +00:00
22 lines
283 B
C++
22 lines
283 B
C++
#pragma once
|
|
#include <SDL.h>
|
|
|
|
class GameObject
|
|
{
|
|
public:
|
|
GameObject(const char* texturesheet, int x, int y);
|
|
~GameObject() = default;
|
|
|
|
void update();
|
|
void render();
|
|
|
|
private:
|
|
int xPos;
|
|
int yPos;
|
|
|
|
SDL_Texture* objTexture;
|
|
SDL_Rect srcRect;
|
|
SDL_Rect destRect;
|
|
};
|
|
|