Browse files

Using a custom build speed.

  • Loading branch information...
1 parent d5fae9a commit 13e4108c153aea797c64559ebc51caf534fb51ce Pedro Barbosa committed Aug 31, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 gti.c
View
5 gti.c
@@ -19,6 +19,9 @@
#include <string.h>
#define GIT_NAME "git"
+#ifndef GTI_SPEED
+#define GTI_SPEED 40
+#endif
int term_width(void);
void init_space(void);
@@ -37,7 +40,7 @@ int main(int argc, char **argv)
init_space();
for (i = -20; i < TERM_WIDTH; i++) {
draw_car(i);
- usleep(20*1000);
+ usleep(1000*100/GTI_SPEED);
clear_car(i);
}
char *git_path = getenv("GIT");

0 comments on commit 13e4108

Please sign in to comment.