diff --git a/gr-sim/fire/Makefile b/gr-sim/fire/Makefile index 9f46ff0b..fc61b21c 100644 --- a/gr-sim/fire/Makefile +++ b/gr-sim/fire/Makefile @@ -6,7 +6,7 @@ SDL_LIBS= `sdl-config --libs` SDL_INCLUDE= `sdl-config --cflags` GR_SIM = ../gr-sim.a -all: fire fire2 fire_blue +all: fire fire2 fire_blue fire3 fire4 fire: fire.o $(GR_SIM) @@ -25,6 +25,25 @@ fire2.o: fire2.c $(CC) $(CFLAGS) -c fire2.c + +fire3: fire3.o $(GR_SIM) + $(CC) $(LFLAGS) $(SDL_LIBS) -o fire3 fire3.o \ + $(GR_SIM) + +fire3.o: fire3.c + $(CC) $(CFLAGS) -c fire3.c + + +fire4: fire4.o $(GR_SIM) + $(CC) $(LFLAGS) $(SDL_LIBS) -o fire4 fire4.o \ + $(GR_SIM) + +fire4.o: fire4.c + $(CC) $(CFLAGS) -c fire4.c + + + + fire_blue: fire_blue.o $(GR_SIM) $(CC) $(LFLAGS) $(SDL_LIBS) -o fire_blue fire_blue.o \ $(GR_SIM) @@ -33,4 +52,4 @@ fire_blue.o: fire_blue.c $(CC) $(CFLAGS) -c fire_blue.c clean: - rm -f *~ *.o fire fire2 fire_blue + rm -f *~ *.o fire fire2 fire_blue fire3 fire4 diff --git a/gr-sim/fire/fire3.c b/gr-sim/fire/fire3.c new file mode 100644 index 00000000..abfed398 --- /dev/null +++ b/gr-sim/fire/fire3.c @@ -0,0 +1,72 @@ +#include +#include +#include +#include + +#include "tfv_zp.h" +#include "gr-sim.h" + // 0 1 2 3 4 5 6 7 +static unsigned char colors[]={0,0,5,8,1,9,13,15}; + +#define YSIZE 20 + +static unsigned char framebuffer[YSIZE][80]; + + + + +int main(int argc, char **argv) { + + int ch,xx,yy,col,newc,r; + int i,j; + + grsim_init(); + + gr(); + clear_screens(); + + for(j=0;j +#include +#include +#include + +#include "tfv_zp.h" +#include "gr-sim.h" + // 0 1 2 3 4 5 6 7 +//static unsigned char colors[]={0,0,5,8,1,9,13,15}; +//{15,14,7,6,2,3,0,0}; +static unsigned char colors[]={0,0,3,2,6,7,14,15}; + +#define YSIZE 20 + +static unsigned char framebuffer[YSIZE][40]; + + + + +int main(int argc, char **argv) { + + int ch,xx,yy,col,newc,r,q; + int i,j,line=1; + + int a=0xf, b=0x8, c=0x0; + int volume; + + grsim_init(); + + gr(); + clear_screens(); + + for(j=0;j