mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-22 17:49: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);
|
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));
|
graphics.draw_rect(x, y, 32, 8, graphics.getRGB(255, 255, 255));
|
||||||
break;
|
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
|
case 9: // Shiny Trinkets
|
||||||
graphics.draw_sprite(x, y, 22, 196, 196, 196);
|
graphics.draw_sprite(x, y, 22, 196, 196, 196);
|
||||||
graphics.draw_rect(x, y, 16, 16, graphics.getRGB(255, 164, 164));
|
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)
|
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;
|
obj.entities[i].state = 3;
|
||||||
}
|
}
|
||||||
else if (obj.entities[i].type == 23 && game.swnmode && game.deathseq<15)
|
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
|
case 3: // Disappearing platforms
|
||||||
obj.createentity(ex, ey, 3);
|
obj.createentity(ex, ey, 3);
|
||||||
break;
|
break;
|
||||||
|
case 5: // Gravity tokens
|
||||||
|
obj.createentity(ex, ey, 5, ent.p1, ent.p2, ent.p3, ent.p4);
|
||||||
|
break;
|
||||||
case 9: // Trinkets
|
case 9: // Trinkets
|
||||||
obj.createentity(ex, ey, 9, cl.findtrinket(edi));
|
obj.createentity(ex, ey, 9, cl.findtrinket(edi));
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue