17 lines
351 B
C++
17 lines
351 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.fill_rectangle_sz(
|
||
|
node().pos() * (TILE_SIZE + 1),
|
||
|
node().size() * TILE_SIZE,
|
||
|
entity.color()
|
||
|
);
|
||
|
}
|
||
|
|