mirror of
https://github.com/Nimac0/SDL_Minigame
synced 2026-01-12 13:43:41 +00:00
21 lines
263 B
C++
21 lines
263 B
C++
#pragma once
|
|
#include "Game.h"
|
|
|
|
class GameObject
|
|
{
|
|
public:
|
|
GameObject(const char* texturesheet, int x, int y);
|
|
~GameObject();
|
|
|
|
void update();
|
|
void render();
|
|
|
|
private:
|
|
int xPos;
|
|
int yPos;
|
|
|
|
SDL_Texture* objTexture;
|
|
SDL_Rect srcRect, destRect;
|
|
};
|
|
|