DATA_PREFIX := /usr/share/vor
PROGRAM_PREFIX := /usr/games/bin
-CFLAGS := -Wall -O3
+CFLAGS := -ggdb
LDFLAGS :=
paths := -DDATA_PREFIX=\"$(DATA_PREFIX)\"
program: vor
%.o: %.c
- @echo compiling $@ from $<
- @$(CC) $(cflags) -c -o $@ $<
+ #@echo compiling $@ from $<
+ $(CC) $(cflags) -c -o $@ $<
$(my_objects): config.h
for(i=0; i<N_DUST_MOTES; i++) {
motes[i].x -= xscroll / (1.3 + motes[i].z);
motes[i].y -= yscroll / (1.3 + motes[i].z);
- if(motes[i].y >= XSIZE) motes[i].x -= XSIZE;
+ if(motes[i].x >= XSIZE) motes[i].x -= XSIZE;
else if(motes[i].x < 0) motes[i].x += XSIZE;
- if(motes[i].y > YSIZE) motes[i].y -= YSIZE;
+ if(motes[i].y >= YSIZE) motes[i].y -= YSIZE;
else if(motes[i].y < 0) motes[i].y += YSIZE;
}
}
int row_inc;
double theta, r;
- n = 24.0 * t_frame;
+ n = 12.0 * t_frame;
pixel = s->pixels;
row_inc = s->pitch/sizeof(uint16_t) - s->w;
colorkey = s->format->colorkey;
#!/bin/sh
-povray -D +A -O- +FP $* 2>/dev/null | pnmcrop | pnmtopng -transparent =black 2>/dev/null
+povray -D +A -O- +FP $* 2>/dev/null | pnmcrop | pnmtopng -transparent black 2>/dev/null