Skip to content

Commit

Permalink
moved scripts and editor to dev_tools folder, added clean option to t…
Browse files Browse the repository at this point in the history
…he makefile
  • Loading branch information
jrs0ul committed Aug 10, 2024
1 parent 1e878cf commit 0bd0c01
Show file tree
Hide file tree
Showing 57 changed files with 18 additions and 8 deletions.
26 changes: 18 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
.PHONY: all clean ntsc pal

all: ntsc pal

PalName := Cold\ \&\ Starving\(Europe\)
NtscName := Cold\ \&\ Starving\(USA,\ Japan\)
Compress := lz4 -9 -f -B4 --no-frame-crc

ifeq ($(OS), Windows_NT)
RM = del /Q /F src\*.o
RM = del /Q /F
else
RM = rm -rf src/*.o
RM = rm -rf
endif

define prepare_content
python CropMaps.py
python dev_tools/CropMaps.py
$(Compress) src/intro.chr src/intro.lz4
$(Compress) src/title.chr src/title.lz4
$(Compress) src/cave_bg_tiles.chr src/cave_bg_tiles.lz4
Expand All @@ -28,19 +30,27 @@ define prepare_content
$(Compress) src/crashed_plane_tiles.chr src/crashed_plane_tiles.lz4
$(Compress) src/title_tiles.chr src/title_tiles.lz4
$(Compress) src/gameover_tiles.chr src/gameover_tiles.lz4
python CropLZ4bytes.py
python dev_tools/CropLZ4bytes.py
endef

pal:
@$(call prepare_content)
ca65 src/game.asm -DFAMISTUDIO_CFG_PAL_SUPPORT=1 -g -o src/game.o
ld65 -o $(PalName).nes -m map.txt -C memory.cfg src/game.o --dbgfile $(PalName).dbg -Ln $(PalName).labels.txt
$(RM)
python fceux_symbols.py $(PalName)
$(RM) src/*.o
python dev_tools/fceux_symbols.py $(PalName)

ntsc:
@$(call prepare_content)
ca65 src/game.asm -DFAMISTUDIO_CFG_NTSC_SUPPORT=1 -g -o src/game.o
ld65 -o $(NtscName).nes -m map.txt -C memory.cfg src/game.o --dbgfile $(NtscName).dbg -Ln $(NtscName).labels.txt
$(RM)
python fceux_symbols.py $(NtscName)
$(RM) src/*.o
python dev_tools/fceux_symbols.py $(NtscName)

clean:
$(RM) src/data/maps/cropped/*.asm
$(RM) src/*.lz4
$(RM) *.nl
$(RM) *.dbg
$(RM) *.labels.txt
$(RM) map.txt
Binary file added art_dev/alien_bg_tiles.bmp
Binary file not shown.
Binary file added art_dev/cave0.bmp
Binary file not shown.
Binary file added art_dev/cave_bg_tiles.bmp
Binary file not shown.
Binary file added art_dev/house_bg_tiles.bmp
Binary file not shown.
Binary file added art_dev/location_with_cave.bmp
Binary file not shown.
Binary file added art_dev/mine_0.bmp
Binary file not shown.
Binary file added art_dev/title_comp.bmp
Binary file not shown.
Binary file added art_dev/title_comp.xcf
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file added dev_tools/editor/diagonalSpeedCalc
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 0bd0c01

Please sign in to comment.