diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/config.h | 4 | ||||
-rw-r--r-- | src/graphics.c | 2 | ||||
-rwxr-xr-x | src/testit.sh | 10 |
3 files changed, 8 insertions, 8 deletions
diff --git a/src/config.h b/src/config.h index 92960c5..08ce918 100644 --- a/src/config.h +++ b/src/config.h @@ -9,8 +9,8 @@ #define DEBUG 1 #define WALK_SPEED 1 #define SPLIT_SCREEN 2 -#define CAMERA_SEPARATION .0125 -#define RED_AND_BLUE 0 +#define CAMERA_SEPARATION -1 +#define RED_AND_BLUE 1 #define SHAPES 16386 #define MAX_SIDES 8 #define WIDTH 4000 diff --git a/src/graphics.c b/src/graphics.c index cdd9c4a..3cb973f 100644 --- a/src/graphics.c +++ b/src/graphics.c @@ -419,7 +419,7 @@ void draw_screen() { for(i=0;global.shape[i];i++) { //now we pick the color of this triangle! if(gra_global.red_and_blue) { - if(cn==0) { + if(cn%2==0) { set_color_red(); } else { set_color_blue(); diff --git a/src/testit.sh b/src/testit.sh index daecd55..86aca19 100755 --- a/src/testit.sh +++ b/src/testit.sh @@ -1,7 +1,7 @@ #!/bin/bash -cat <(../tools/obj2hackvr2.pl woman ../meshes/female_basemesh1_2.obj | sort -R) \ - <(echo "woman move 10 0 0") \ - <(../tools/obj2hackvr2.pl woman2 ../meshes/female_basemesh1_2.obj | sort -R) \ - <(echo "woman2 move -10 0 0") \ - <(../tools/obj2hackvr2.pl woman3 ../meshes/female_basemesh1_2.obj | sort -R) | ./slowcat 10000 | ./hackvr $USER +cat <(sort -R ../meshes/female_basemesh1_2.hackvr) \ + <(echo "woman move 10 0 -50") \ + <(sort -R ../meshes/female_basemesh1_2.hackvr | sed 's/woman/woman2/g') \ + <(echo "woman2 move -10 0 -200") \ + <(sort -R ../meshes/female_basemesh1_2.hackvr | sed 's/woman/woamn3/g') | ./slowcat 10000 | ./hackvr $USER #../tools/obj2hackvr.pl woman ../meshes/female_basemesh1_2.obj | ./hackvr epoch |