Skip to content

Commit

Permalink
Gravity token edentity
Browse files Browse the repository at this point in the history
  • Loading branch information
AllyTally committed Mar 23, 2023
1 parent b6d1cf4 commit 46d0871
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions desktop_version/src/Editor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -671,6 +671,10 @@ static void draw_entities(void)
font::print(PR_FONT_8X8, x, y, "////", 255 - help.glow, 255 - help.glow, 255 - help.glow);
graphics.draw_rect(x, y, 32, 8, graphics.getRGB(255, 255, 255));
break;
case 5: // Gravity Tokens
graphics.draw_sprite(x, y, 68 + entity->p1, graphics.getcol(entity->p2));
graphics.draw_rect(x, y, 16, 16, graphics.getRGB(255, 164, 164));
break;
case 9: // Shiny Trinkets
graphics.draw_sprite(x, y, 22, 196, 196, 196);
graphics.draw_rect(x, y, 16, 16, graphics.getRGB(255, 164, 164));
Expand Down
2 changes: 1 addition & 1 deletion desktop_version/src/Logic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ void gamelogic(void)
}
else if (obj.entities[i].type == 4 && obj.entities[i].state == 2)
{
// Flip token: Give a signal to respawn
// Gravity token: Give a signal to respawn
obj.entities[i].state = 3;
}
else if (obj.entities[i].type == 23 && game.swnmode && game.deathseq<15)
Expand Down
3 changes: 3 additions & 0 deletions desktop_version/src/Map.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1872,6 +1872,9 @@ void mapclass::loadlevel(int rx, int ry)
case 3: // Disappearing platforms
obj.createentity(ex, ey, 3);
break;
case 5: // Gravity 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;
Expand Down

0 comments on commit 46d0871

Please sign in to comment.