From f8534fd453e237c85353c2fee909dfcbafbdee93 Mon Sep 17 00:00:00 2001 From: AllyTally Date: Tue, 15 Nov 2022 00:16:13 -0400 Subject: [PATCH] flip token edentity --- desktop_version/src/Editor.cpp | 5 +++++ desktop_version/src/Map.cpp | 3 +++ 2 files changed, 8 insertions(+) diff --git a/desktop_version/src/Editor.cpp b/desktop_version/src/Editor.cpp index 24e4107c278..55618588bbf 100644 --- a/desktop_version/src/Editor.cpp +++ b/desktop_version/src/Editor.cpp @@ -691,6 +691,11 @@ void editorrender(void) graphics.Print((customentities[i].x*8)- (ed.levx*40*8),(customentities[i].y*8)- (ed.levy*30*8), "////", 255 - help.glow, 255 - help.glow, 255 - help.glow, false); fillboxabs((customentities[i].x*8)- (ed.levx*40*8),(customentities[i].y*8)- (ed.levy*30*8),32,8,graphics.getRGB(255,255,255)); break; + case 5: // Flip Token + graphics.setcol(customentities[i].p2); + graphics.drawsprite((customentities[i].x * 8) - (ed.levx * 40 * 8), (customentities[i].y * 8) - (ed.levy * 30 * 8), 68 + customentities[i].p1, graphics.ct.colour); + fillboxabs((customentities[i].x * 8) - (ed.levx * 40 * 8), (customentities[i].y * 8) - (ed.levy * 30 * 8), 16, 16, graphics.getRGB(255, 164, 164)); + break; case 9: //Shiny Trinket graphics.drawsprite((customentities[i].x*8)- (ed.levx*40*8),(customentities[i].y*8)- (ed.levy*30*8),22,196,196,196); fillboxabs((customentities[i].x*8)- (ed.levx*40*8),(customentities[i].y*8)- (ed.levy*30*8),16,16,graphics.getRGB(255, 164, 164)); diff --git a/desktop_version/src/Map.cpp b/desktop_version/src/Map.cpp index 74d6a943c0e..62613d377e0 100644 --- a/desktop_version/src/Map.cpp +++ b/desktop_version/src/Map.cpp @@ -1890,6 +1890,9 @@ void mapclass::loadlevel(int rx, int ry) case 3: // Disappearing platforms obj.createentity(ex, ey, 3); break; + case 5: // Flip tokens + obj.createentity(ex, ey, 5, ent.p1, ent.p2, ent.p3, ent.p4); + break; case 9: // Trinkets obj.createentity(ex, ey, 9, cl.findtrinket(edi)); break;