Skip to content

Commit

Permalink
add music in ADX format
Browse files Browse the repository at this point in the history
the library used here has been included
  • Loading branch information
headshot2017 committed Jul 16, 2024
1 parent 7425df3 commit da95ea5
Show file tree
Hide file tree
Showing 12 changed files with 911 additions and 2 deletions.
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ CPP_FILES := $(foreach dir,$(SOURCE_DIRS),$(wildcard $(dir)/*.cpp))
C_FILES := $(foreach dir,$(SOURCE_DIRS),$(wildcard $(dir)/*.c))
OBJS := $(C_FILES:%.c=%.o) $(CPP_FILES:%.cpp=%.o)

CXXFLAGS := -IlibADXplay/LibADX
LIBS := -lADX

# Optional path to a directory of resources to bundle within your ELF binary.
# Its contents are accessible via the "/rd/" virtual directory at runtime.
#KOS_ROMDISK_DIR = romdisk
Expand All @@ -33,7 +36,7 @@ rm-elf:

# Invokes the compiler to build the target from our object files
$(TARGET): $(OBJS)
kos-c++ -o $(TARGET) $(OBJS)
kos-c++ -o $(TARGET) $(OBJS) $(LIBS)

# Attempts to run the target using the configured loader application
run: $(TARGET)
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ Port of 3D Pinball - Space Cadet to the Sega Dreamcast, based on the [decompilat

Built with [DreamSDK](https://github.com/dreamsdk/dreamsdk)

Libraries used:
* LibADX: https://dcemulation.org/phpBB/viewtopic.php?t=101638
* With some modifications to compile on latest KallistiOS

## Controls
* Paddles: DPad Left-Right / X/B / LT/RT
* Launch ball: DPad Down / A
Expand Down
Binary file added cd_root/PINBALL.adx
Binary file not shown.
7 changes: 7 additions & 0 deletions libADXplay/LibADX/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#LibADX (C) Josh PH3NOM Pearson 2011

TARGET = libADX.a

OBJS = libadx.o snddrv.o

include $(KOS_BASE)/addons/Makefile.prefab
Loading

0 comments on commit da95ea5

Please sign in to comment.