|
GBDK 2020 Docs
API Documentation for GBDK 2020
|
Follow the steps in this section to start using GBDK-2020.
Make sure your GBDK-2020 installation is working correctly by compiling some of the included example projects.
Navigate to the example projects folder ("examples/gb/" under your GBDK-2020 install folder) and open a command line. Then type:
make
This should build all of the examples sequentially. You can also navigate into an individual example project's folder and build it by typing make.
If everything works and there are no errors reported each example sub-folder should have it's on .gb ROM file.
To create a new project use a template!
There are template projects included in the GBDK example projects to help you get up and running. Their folder names start with template_.
GBDK path variable and/or the path to LCC in the Makefile or make.bat so that it will still build correctly.make on the command line in that folder to verify it still builds.If you plan to use GBTD / GBMB for making graphics, make sure to get the version with the const fix and other improvements. See const_gbtd_gbmb.
Take a look at the coding guidelines, even if you have experience writing software for other platforms. There is important information to help you get good results and performance on the Game Boy.
If you haven't written programs in C before, check the C tutorials section.
If you have a specific project in mind, consider what hardware want to target. It isn't something that has to be decided up front, but it can influence design and implementation.
What size will your game or program be?
What hardware will it run on?
Tracking down problems in code is easier with a debugger. Emulicious has a debug adapter that provides C source debugging with GBDK-2020.
You might want to start off with a guided GBDK tutorial from the GBDK Tutorials section.
Check out the links for online community and support and read the FAQ.