Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Refragg committed Apr 11, 2021
0 parents commit a265bd8
Show file tree
Hide file tree
Showing 6 changed files with 856 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Auto detect text files and perform LF normalization
* text=auto
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
*.o
*.elf
*.img
*.cdi
*.iso
*.bin
*.json
.vs
37 changes: 37 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
all: rm-elf pong.elf

include $(KOS_BASE)/Makefile.rules

OBJS = pong.o

KOS_LOCAL_CFLAGS = -I$(KOS_BASE)/addons/zlib

clean:
-rm -f pong.elf $(OBJS)
-rm -f romdisk_boot.*

dist:
-rm -f $(OBJS)
-rm -f romdisk_boot.*
$(KOS_STRIP) pong.elf

rm-elf:
-rm -f pong.elf
-rm -f romdisk_boot.*

pong.elf: $(OBJS) romdisk_boot.o
$(KOS_CC) $(KOS_CFLAGS) $(KOS_LDFLAGS) -o $@ $(KOS_START) $^ -lpng -lz -lm $(KOS_LIBS)

wfont.o: wfont.bin
$(KOS_BASE)/utils/bin2o/bin2o $< wfont $@

romdisk_boot.img:
$(KOS_GENROMFS) -f $@ -d romdisk_boot -v

romdisk_boot.o: romdisk_boot.img
$(KOS_BASE)/utils/bin2o/bin2o $< romdisk_boot $@

run: pong.elf
$(KOS_LOADER) $<


2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# dreamcast_pong
A pong game for the Dreamcast, using KallistiOS
Loading

0 comments on commit a265bd8

Please sign in to comment.