Automation/src/tiles/rainbow.cpp

17 lines
351 B
C++
Raw Normal View History

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