[main.c+JTMM.g3a] Drill reverse momentum when colliding with spike or solid.

This commit is contained in:
KikooDX 2020-05-18 15:27:03 +02:00
parent 9ce59443b6
commit 0d80478a78
2 changed files with 5 additions and 0 deletions

BIN
JTMM.g3a

Binary file not shown.

View File

@ -103,6 +103,11 @@ int main(void)
}
draw_player(drill_x, drill_y);
collide_and_erase(drill_x, drill_y, level, 'd');
if ((selected_direction == UP || selected_direction == DOWN) &&
(collide_spike(drill_x, drill_y, level) || collide_solid(drill_x, drill_y, level, polarity, 0)))
{
vspd = -vspd;
}
}
draw_timer(step/2);
dupdate();