10 lines
233 B
C++
10 lines
233 B
C++
#include "game/sprite.hpp"
|
|
|
|
Sprite::Sprite(JD8_Surface gfx)
|
|
: gfx(gfx) {}
|
|
|
|
void Sprite::draw() {
|
|
const Frame& f = entitat.frames[entitat.animacions[o].frames[cur_frame]];
|
|
JD8_BlitCK(x, y, gfx, f.x, f.y, f.w, f.h, 255);
|
|
}
|