Merge pull request 'some fixes' (#5) from Massena/jtmm:master into master
Reviewed-on: https://gitea.planet-casio.com/KikooDX/jtmm/pulls/5 C'est hyper pro, parfait pour ce projet.
This commit is contained in:
commit
ac60e2b170
|
@ -138,7 +138,8 @@ void erase_tile(int x, int y, char level[])
|
|||
|
||||
void draw_timer(unsigned int step)
|
||||
{
|
||||
dprint(0, 0, C_WHITE, C_BLACK, "%u.%02u", (step*2)/FPS, (step*2)%FPS);
|
||||
float stepfloat = step;
|
||||
dprint_opt(0, 0, C_WHITE, C_BLACK, DTEXT_LEFT, DTEXT_TOP, "%.2j", (int)(stepfloat*2/FPS*100));
|
||||
}
|
||||
|
||||
void just_breathe(unsigned int step)
|
||||
|
|
|
@ -311,6 +311,8 @@ int main(void)
|
|||
//spike collision and death
|
||||
if (collide_spike(player_x, player_y, level))
|
||||
{
|
||||
set_level(level_id, level);
|
||||
DRAW_LEVEL();
|
||||
player_x = start_x;
|
||||
player_y = start_y;
|
||||
polarity = 0;
|
||||
|
|
Loading…
Reference in New Issue