Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Porting from Classic ZGB wiki page #21

Open
joshbalfour opened this issue Aug 3, 2024 · 0 comments
Open

Update Porting from Classic ZGB wiki page #21

joshbalfour opened this issue Aug 3, 2024 · 0 comments

Comments

@joshbalfour
Copy link

I just successfully ported my game from Classic ZGB to CrossZGB. my only required change was the Makefile,
I don't think you can do PRs for repo wikis but figured it was worth sharing the steps in case you wanted to update the relevant wiki page: https://github.com/gbdk-2020/CrossZGB/wiki/Porting-from-Classic-ZGB

  • Replace the Makefile in your src directory with the new makefile and set your desired TARGETS

The diff should look something like this:

@@ -1,14 +1,17 @@
 PROJECT_NAME = ZGB_TEMPLATE
 
-all: build_gb
+# Set platforms to build here, spaced separated. (These are in the separate Makefile.targets)
+# They can also be built/cleaned individually: "make gg" and "make gg-clean"
+# Possible are: gb gbc pocket megaduck sms gg
+TARGETS=gbc pocket
+
+# Builds all targets sequentially
+all: $(TARGETS)
 
 # Number of banks (must be a power of 2): A (Automatic), 2, 4, 8, 16, 32...
 N_BANKS = A
 
-# Music player: HUGETRACKER(default) or GBT_PLAYER
-MUSIC_PLAYER = HUGETRACKER
-
 # Default hardware sprites size: SPRITES_8x16(default) or SPRITES_8x8
 DEFAULT_SPRITES_SIZE = SPRITES_8x16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant