mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-22 01:29:43 +01:00
Gravity token edentity
This commit is contained in:
parent
b6d1cf480c
commit
46d08716f4
3 changed files with 8 additions and 1 deletions
|
@ -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));
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue