wow, I created ground and fire

This commit is contained in:
elwld 2022-07-10 01:12:20 +05:00
parent c14d6e6c59
commit 2288fb8d15
14 changed files with 185 additions and 48 deletions

17
src/game/StaticObject.h Normal file
View file

@ -0,0 +1,17 @@
#include "GameObject.h"
class StaticObject: public GameObject
{
public:
StaticObject(int x, int y, int w, int h, SDL_Rect srcrect): GameObject(x, y, w, h)
{
this->srcrect = srcrect;
}
Frame frame()
{
return Frame(this->dstrect, this->srcrect);
}
protected:
SDL_Rect srcrect;
};