Skip to content

Commit

Permalink
switched to mode 4
Browse files Browse the repository at this point in the history
  • Loading branch information
tolik518 committed Nov 5, 2023
1 parent 22e7238 commit aad423d
Show file tree
Hide file tree
Showing 23 changed files with 9,897 additions and 19,038 deletions.
21 changes: 13 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ compile: clean_out clean_sound

# gets include files from libgba and libtonc to the include folder
.PHONY: getincludes
getincludes:
getincludes:
-@docker run \
--cidfile=c.cid \
$(VENDORNAME)/$(PROJECTNAME)/$(CONTAINERNAME):dev \
Expand All @@ -37,27 +37,32 @@ getincludes:

# dont overwrite existing files
.PHONY: grit_all
grit_all:
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:
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"
.PHONY: grit_mode3
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:
grit:
docker run \
-v $$(pwd)/code:/${USER} \
-v $$(pwd)/out:/out \
Expand Down Expand Up @@ -89,7 +94,7 @@ clean_out:
clean_docker:
docker image rm -f $(VENDORNAME)/$(PROJECTNAME)/$(CONTAINERNAME):dev

# delete all h files from the include folder (from devkitarm)
# delete all h files from the include folder (from devkitarm)
.PHONY: deleteincludes
deleteincludes:
rm $$(pwd)/code/include/*.h
2 changes: 1 addition & 1 deletion README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ _____
* use `make grit img=[your path starting from the, excluding, /code folder] args="[your arguments]"`
* for example: `make grit img=img/pong_logo.png args="-ftc -gb -gB16"`
* after that just include the generated file and memcopy your image to the vram
* for example: `tonccpy(m3_mem, pong_logoBitmap, 76800)`
* for example: `tonccpy(m4_mem, pong_logoBitmap, 76800)`
_____

###### Repository created and maintained by [tolik518](https://github.com/tolik518).
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.

Loading

0 comments on commit aad423d

Please sign in to comment.