mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-09-27 21:58:13 +00:00
3d:: display rose scent (not work well though)
This commit is contained in:
parent
b5c7df4b11
commit
03083a4520
22
graph.cpp
22
graph.cpp
@ -3340,13 +3340,15 @@ void setcolors(cell *c, color_t& wcol, color_t& fcol) {
|
|||||||
fcol = wcol;
|
fcol = wcol;
|
||||||
} */
|
} */
|
||||||
|
|
||||||
int rd = rosedist(c);
|
if(DIM == 2) {
|
||||||
if(rd == 1)
|
int rd = rosedist(c);
|
||||||
wcol = gradient(0x804060, wcol, 0,1,3),
|
if(rd == 1)
|
||||||
fcol = gradient(0x804060, fcol, 0,1,3);
|
wcol = gradient(0x804060, wcol, 0,1,3),
|
||||||
if(rd == 2)
|
fcol = gradient(0x804060, fcol, 0,1,3);
|
||||||
wcol = gradient(0x804060, wcol, 0,2,3),
|
if(rd == 2)
|
||||||
fcol = gradient(0x804060, fcol, 0,2,3);
|
wcol = gradient(0x804060, wcol, 0,2,3),
|
||||||
|
fcol = gradient(0x804060, fcol, 0,2,3);
|
||||||
|
}
|
||||||
|
|
||||||
if(items[itRevolver] && !shmup::on) {
|
if(items[itRevolver] && !shmup::on) {
|
||||||
bool inrange = c->mpdist <= GUNRANGE;
|
bool inrange = c->mpdist <= GUNRANGE;
|
||||||
@ -4713,6 +4715,12 @@ void drawcell(cell *c, transmatrix V, int spinv, bool mirrored) {
|
|||||||
|
|
||||||
else
|
else
|
||||||
queuepoly(rgpushxto0(tC0(V)), chasmgraph(c) ? shSawRing : shRing, darkena(wcol, 0, 0xFF));
|
queuepoly(rgpushxto0(tC0(V)), chasmgraph(c) ? shSawRing : shRing, darkena(wcol, 0, 0xFF));
|
||||||
|
|
||||||
|
int rd = rosedist(c);
|
||||||
|
if(rd == 1)
|
||||||
|
queuepoly(rgpushxto0(tC0(V)), shLoveRing, darkena(0x804060, 0, 0xFF));
|
||||||
|
if(rd == 2)
|
||||||
|
queuepoly(rgpushxto0(tC0(V)), shLoveRing, darkena(0x402030, 0, 0xFF));
|
||||||
}
|
}
|
||||||
|
|
||||||
else switch(c->wall) {
|
else switch(c->wall) {
|
||||||
|
Loading…
Reference in New Issue
Block a user