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

Organizado #2

parent e8cbbbb0
0 269
\ No newline at end of file \ No newline at end of file
...@@ -276,15 +276,16 @@ void renderMap(map *m, int time) { ...@@ -276,15 +276,16 @@ void renderMap(map *m, int time) {
renderChar(wall2, i, j, offx, offy, 4); renderChar(wall2, i, j, offx, offy, 4);
break; break;
case('4'): case('4'):
if (done) { renderChar(ext, i, j, offx, offy, 5);
if (time < 15) renderChar(ext, i, j, offx, offy, 5); if (done && time >= 15)
else renderChar(empty, i, j, offx, offy, 4); renderChar(empty, i, j, offx, offy, 4);
} else
renderChar(ext, i, j, offx, offy, 5);
break; break;
case('5'): case('5'):
renderRockford(&player, i, j, offx, offy); renderRockford(&player, i, j, offx, offy);
break; break;
case('M'):
renderFirefly(i, j, offx, offy, blink1, blink2, blink3);
break;
case('6'): case('6'):
if ((m->grid[i][j+1] == '6' || m->grid[i][j+1] == 'w' || 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') && m->grid[i][j+1] == 'z' || m->grid[i][j+1] == '7') &&
...@@ -315,9 +316,6 @@ void renderMap(map *m, int time) { ...@@ -315,9 +316,6 @@ void renderMap(map *m, int time) {
renderDiamonds(i, j, offx, offy, time); renderDiamonds(i, j, offx, offy, time);
break; break;
case('M'):
renderFirefly(i, j, offx, offy, blink1, blink2, blink3);
break;
} }
} }
......
#ifndef _TIMEHELPER_H #ifndef _TIMEHELPER_H
#define _TIMEHELPER_H #define _TIMEHELPER_H
#include "utils.h" #include "utils.h"
#include <sys/time.h> #include <sys/time.h>
#define NANO 1000000000.0 #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