16 lines
360 B
C++
16 lines
360 B
C++
#include "tiles/rainbow.h"
|
|
#include "entities/rainbow.h"
|
|
|
|
Entity *Rainbow::create_entity() {
|
|
return new entity::Rainbow();
|
|
}
|
|
|
|
void Rainbow::render(Render r) {
|
|
auto &entity = (entity::Rainbow &)node().entity();
|
|
r.translate(node().pos() * (TILE_SIZE + 1));
|
|
r.fill_rectangle_sz(
|
|
node().size() * TILE_SIZE,
|
|
entity.color()
|
|
);
|
|
}
|
|
|