Commit 81df4266 authored by Bruno Freitas Tissei's avatar Bruno Freitas Tissei
Browse files

Organizado #2

parent e8cbbbb0
0
\ No newline at end of file
269
\ No newline at end of file
......@@ -276,15 +276,16 @@ void renderMap(map *m, int time) {
renderChar(wall2, i, j, offx, offy, 4);
break;
case('4'):
if (done) {
if (time < 15) renderChar(ext, i, j, offx, offy, 5);
else renderChar(empty, i, j, offx, offy, 4);
} else
renderChar(ext, i, j, offx, offy, 5);
if (done && time >= 15)
renderChar(empty, i, j, offx, offy, 4);
break;
case('5'):
renderRockford(&player, i, j, offx, offy);
break;
case('M'):
renderFirefly(i, j, offx, offy, blink1, blink2, blink3);
break;
case('6'):
if ((m->grid[i][j+1] == '6' || m->grid[i][j+1] == 'w' ||
m->grid[i][j+1] == 'z' || m->grid[i][j+1] == '7') &&
......@@ -315,9 +316,6 @@ void renderMap(map *m, int time) {
renderDiamonds(i, j, offx, offy, time);
break;
case('M'):
renderFirefly(i, j, offx, offy, blink1, blink2, blink3);
break;
}
}
......
#ifndef _TIMEHELPER_H
#define _TIMEHELPER_H
#include "utils.h"
#include <sys/time.h>
#define NANO 1000000000.0
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment