Skip to content

Commit

Permalink
mode 4 (#2)
Browse files Browse the repository at this point in the history
- changed all images to 8 bit instead of 16
- added grit commands
- changed all DMAs to mode 4
  • Loading branch information
tolik518 committed Jul 14, 2022
1 parent 25dadae commit f0e95c9
Show file tree
Hide file tree
Showing 17 changed files with 8,437 additions and 16,269 deletions.
10 changes: 7 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,21 +40,25 @@ getincludes:
grit_all:
for file in code/img/*.png; \
do test -f $${file%.*}.h || \
make grit img=$${file#*/} args="-ftc -gb -gB16"; \
make grit_mode4 img=$${file#*/}; \
done

# overwrite existing .c and .h files
.PHONY: grit_all_force
grit_all_force:
for file in code/img/*.png; \
do make grit img=$${file#*/} args="-ftc -gb -gB16"; \
do make grit_mode4 img=$${file#*/}; \
done

# example "make grit_gB16 img=img/pong_tc.png"
# example "make grit_mode3 img=img/pong_tc.png"
.PHONY: grit_mode3
grit_mode3:
make grit img=$(img) args="-ftc -gb -gB16"

.PHONY: grit_mode4
grit_mode4:
make grit img=$(img) args="-ftc -gb -gB8 -aw 240 -ah 160"

# example "make grit img=img/pong_tc.png args="-ftc -gb -gB16""
.PHONY: grit
grit:
Expand Down
4,096 changes: 1,393 additions & 2,703 deletions code/img/title_0.c

Large diffs are not rendered by default.

14 changes: 9 additions & 5 deletions code/img/title_0.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4,096 changes: 1,393 additions & 2,703 deletions code/img/title_1.c

Large diffs are not rendered by default.

14 changes: 9 additions & 5 deletions code/img/title_1.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4,096 changes: 1,393 additions & 2,703 deletions code/img/title_2.c

Large diffs are not rendered by default.

14 changes: 9 additions & 5 deletions code/img/title_2.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4,096 changes: 1,393 additions & 2,703 deletions code/img/title_3.c

Large diffs are not rendered by default.

14 changes: 9 additions & 5 deletions code/img/title_3.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4,096 changes: 1,393 additions & 2,703 deletions code/img/you_lost_0.c

Large diffs are not rendered by default.

14 changes: 9 additions & 5 deletions code/img/you_lost_0.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit f0e95c9

Please sign in to comment.