mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-06-06 08:24:06 +00:00
draw using hooks_fram not hooks_drawcell
This commit is contained in:
parent
67360d8d5f
commit
dfe78c51d0
@ -151,9 +151,11 @@ void draw_at(transmatrix T, color_t col) {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool may_set_cell(cell *c, const transmatrix& V) {
|
void draw_magma() {
|
||||||
if(c == cwt.at && magmashape) {
|
if() {
|
||||||
if(heps.empty()) make();
|
if(heps.empty()) make();
|
||||||
|
transmatrix V = ggmatrix(currentmap.gamestart());
|
||||||
|
println(hlog, "V = ", V);
|
||||||
for(auto h: heps)
|
for(auto h: heps)
|
||||||
draw_at(V * h.first, h.second);
|
draw_at(V * h.first, h.second);
|
||||||
}
|
}
|
||||||
@ -181,7 +183,7 @@ int readArgs() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
auto msc = addHook(hooks_drawcell, 100, may_set_cell)
|
auto msc = addHook(hooks_frame, 100, draw_magma)
|
||||||
+ addHook(hooks_args, 100, readArgs);
|
+ addHook(hooks_args, 100, readArgs);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user