From 1d1f08646352df00977a88adb99e04d54e4dfd5d Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Tue, 2 Apr 2024 22:02:59 +0200 Subject: basics: Add a flickering example MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add an example on how to flicker sprites so to not surpass the scanline limit for them. Signed-off-by: Miquel Sabaté Solà --- Makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index fd12927..bb5c572 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ CC65 ?= cl65 CA65 ?= ca65 LD65 ?= ld65 -CCOPTS ?= --verbose --target nes +CCOPTS ?= --target nes .PHONY: all all: clean deps build @@ -11,7 +11,7 @@ clean: @rm -rf out @find . -type f -name "*.o" -delete @find . -type f -name "*.nes" -delete - @mkdir -p out/basics out/scroll + @mkdir -p out/basics out/scroll out/space .PHONY: deps deps: @@ -25,6 +25,7 @@ basics: $(CC65) $(CCOPTS) basics/sprite.s -o out/basics/sprite.nes $(CC65) $(CCOPTS) basics/input.s -o out/basics/input.nes $(CC65) $(CCOPTS) basics/persist.s -o out/basics/persist.nes + $(CC65) $(CCOPTS) basics/flicker.s -o out/basics/flicker.nes $(CA65) $(CCOPTS) basics/unrom.s -o basics/unrom.o $(LD65) basics/unrom.o -C config/unrom.cfg -o out/basics/unrom.nes @@ -37,7 +38,7 @@ basics: .PHONY: space space: @cd space && CC65=$(CC65) CCOPTS="$(CCOPTS)" $(MAKE) - @mv space/space.nes out/ + @mv space/space.nes out/space/ .PHONY: scroll scroll: -- cgit v1.2.3