mirror of
https://github.com/deater/dos33fsprogs.git
synced 2024-12-25 20:30:31 +00:00
tfv: make mode7_demo a standalone program
This commit is contained in:
parent
9b67ba27b5
commit
53a159237d
@ -5,7 +5,7 @@ LFLAGS = -lm
|
||||
SDL_LIBS= `sdl-config --libs`
|
||||
SDL_INCLUDE= `sdl-config --cflags`
|
||||
|
||||
all: rainbow sparkle kaleido tfv text
|
||||
all: rainbow sparkle kaleido tfv mode7_demo text
|
||||
|
||||
|
||||
|
||||
@ -25,6 +25,14 @@ text: text.o gr-sim.o
|
||||
text.o: text.c
|
||||
$(CC) $(CFLAGS) -c text.c
|
||||
|
||||
####
|
||||
|
||||
mode7_demo: mode7_demo.o gr-sim.o
|
||||
$(CC) $(LFLAGS) $(SDL_LIBS) -o mode7_demo mode7_demo.o gr-sim.o
|
||||
|
||||
mode7_demo.o: mode7_demo.c
|
||||
$(CC) $(CFLAGS) -c mode7_demo.c
|
||||
|
||||
|
||||
###
|
||||
|
||||
@ -121,6 +129,6 @@ gr-sim.o: gr-sim.c gr-sim.h apple2_font.h
|
||||
$(CC) $(CFLAGS) $(SDL_INCLUDE) -c gr-sim.c
|
||||
|
||||
clean:
|
||||
rm -f *~ *.o gr-sim rainbow sparkle kaleido tfv text
|
||||
rm -f *~ *.o gr-sim rainbow sparkle kaleido tfv text mode7_demo
|
||||
|
||||
|
||||
|
@ -36,6 +36,38 @@ static unsigned char flying_map[16][16]= {
|
||||
|
||||
};
|
||||
|
||||
|
||||
/* Ship Sprites */
|
||||
unsigned char ship_shadow[]={
|
||||
0x5,0x3,
|
||||
0x00,0x00,0x00,0x00,0x00,
|
||||
0x00,0x00,0xaa,0x00,0x00,
|
||||
0x00,0x00,0xaa,0x00,0x00,
|
||||
};
|
||||
|
||||
unsigned char ship_forward[]={
|
||||
0x5,0x3,
|
||||
0x00,0x00,0x77,0x00,0x00,
|
||||
0x50,0x55,0x77,0x55,0x50,
|
||||
0x01,0x00,0x07,0x00,0x01,
|
||||
};
|
||||
|
||||
unsigned char ship_right[]={
|
||||
0x5,0x3,
|
||||
0x50,0x00,0x70,0x77,0x00,
|
||||
0x01,0x55,0x77,0x55,0x50,
|
||||
0x00,0x77,0x07,0x00,0x15,
|
||||
};
|
||||
|
||||
unsigned char ship_left[]={
|
||||
0x5,0x3,
|
||||
0x00,0x77,0x70,0x00,0x50,
|
||||
0x50,0x55,0x77,0x55,0x01,
|
||||
0x15,0x00,0x07,0x77,0x00,
|
||||
};
|
||||
|
||||
|
||||
|
||||
static int tile_w=16,tile_h=16;
|
||||
|
||||
|
||||
@ -244,3 +276,15 @@ int flying(void) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
int main(int argc, char **argv) {
|
||||
|
||||
grsim_init();
|
||||
|
||||
home();
|
||||
gr();
|
||||
|
||||
flying();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user