2021-07-31 22:53:53 -04:00
|
|
|
#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();
|
2021-08-02 00:10:44 -04:00
|
|
|
r.translate(node().pos() * (TILE_SIZE + 1));
|
2021-07-31 22:53:53 -04:00
|
|
|
r.fill_rectangle_sz(
|
|
|
|
node().size() * TILE_SIZE,
|
|
|
|
entity.color()
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|