wow, I created ground and fire
This commit is contained in:
parent
c14d6e6c59
commit
2288fb8d15
14 changed files with 185 additions and 48 deletions
17
src/game/StaticObject.h
Normal file
17
src/game/StaticObject.h
Normal 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;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue