1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-26 01:50:36 +00:00

hat:: export get_long_transform

This commit is contained in:
Zeno Rogue 2023-03-30 11:26:05 +02:00
parent 7dbb60d3f8
commit 14aaa7ecea

View File

@ -756,6 +756,14 @@ EX void reshape() {
hatmap->init();
}
EX transmatrix get_long_transform(int level, int dir) {
hrmap_hat *hatmap;
hatmap = FPIU( hat_map() );
if(!hatmap) return Id;
hatmap->fill_transform_levels(max(level, 5));
return hatmap->long_transformations[level][dir];
}
EX color_t hatcolor(cell *c, int mode) {
vector<int> cols;
auto *m = (hrmap_hat*) (currentmap);