gbdk-2020 | GameBoy Development Kit |
| download: https://git.y1.nz/archives/gbdk.tar.gz | |
| README | Files | Log | Refs | LICENSE |
commit b69dd4b4343e4db274833e893023f79ab17457e0 parent 8e49548f9e619938dff3fde722184da0bab89392 Author: bbbbbr <bbbbbr@users.noreply.github.com> Date: Sat, 4 Jun 2022 11:52:43 -0700 Merge pull request #353 from zntfdr/docs/typos [docs] Fix more typos Diffstat:
6 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/docs/pages/03_using_gbdk.md b/docs/pages/03_using_gbdk.md @@ -170,4 +170,4 @@ See the `incbin` example project for a demo of how to use it. ## SDCC - Const arrays declared with `somevar[n] = {x}` will __NOT__ get initialized with value `x`. This may change when the SDCC RLE initializer is fixed. Use memset for now if you need it. - - SDCC banked calls and @ref far_pointers in GBDK only save one byte for the ROM bank, so for example they are limtied to __bank 15__ max for MBC1 and __bank 255__ max for MBC5. See @ref banked_calls for more details. + - SDCC banked calls and @ref far_pointers in GBDK only save one byte for the ROM bank, so for example they are limited to __bank 15__ max for MBC1 and __bank 255__ max for MBC5. See @ref banked_calls for more details. diff --git a/docs/pages/04_coding_guidelines.md b/docs/pages/04_coding_guidelines.md @@ -50,7 +50,7 @@ If you wish to use the original tools, you must add the `const` keyword every ti - @anchor const_array_data `const` keyword: use const for arrays, structs and variables with read-only (constant) data. It will reduce ROM, RAM and CPU usage significantly. Non-`const` values are loaded from ROM into RAM inefficiently, and there is no benefit in loading them into the limited available RAM if they aren't going to be changed. - - Here is how to delcare `const` pointers and variables: + - Here is how to declare `const` pointers and variables: - non-const pointer to a const variable: `const uint8_t * some_pointer;` - const pointer to a non-const variable: `uint8_t * const some_pointer;` - const pointer to a const variable: `const uint8_t * const some_pointer;` diff --git a/docs/pages/06_toolchain.md b/docs/pages/06_toolchain.md @@ -193,7 +193,7 @@ Converts .ihx files produced by @ref sdldgb into ROM files (.gb, .gbc). Also use @anchor utility_gbcompress ## GBCompress -Compresssion utility. +Compression utility. For detailed settings see @ref gbcompress-settings diff --git a/docs/pages/20_toolchain_settings.md b/docs/pages/20_toolchain_settings.md @@ -448,7 +448,7 @@ usage: png2asset <file>.png [options] -sp <props> change default for sprite OAM property bytes (in hex) (default: 0x00) -px <x coord> metasprites pivot x coordinate (default: metasprites width / 2) -py <y coord> metasprites pivot y coordinate (default: metasprites height / 2) --pw <width> metasprites collision rect widht (default: metasprites width) +-pw <width> metasprites collision rect width (default: metasprites width) -ph <height> metasprites collision rect height (default: metasprites height) -spr8x8 use SPRITES_8x8 (default: SPRITES_8x16) -spr8x16 use SPRITES_8x16 (default: SPRITES_8x16) diff --git a/gbdk-support/gbcompress/files_c_source.c b/gbdk-support/gbcompress/files_c_source.c @@ -54,7 +54,7 @@ static char * str_ffwd_to(char * str_in, uint32_t * max_len, char char_match, ch -// Convert an array of comma delimtied numbers into a buffer +// Convert an array of comma delimited numbers into a buffer // // If conversion fails: returns NULL, *p_ret_size == 0 // diff --git a/gbdk-support/png2asset/png2asset.cpp b/gbdk-support/png2asset/png2asset.cpp @@ -145,7 +145,7 @@ struct PNGImage // MSX 16x16 sprite tiles are composed of four 8x8 tiles in this order UL, LL, UR, LR bool UL_notempty, LL_notempty, UR_notempty, LR_notempty; - // Call these separately since otherwise some get optimzied out during + // Call these separately since otherwise some get optimized out during // runtime if any single one before it returns false UL_notempty = ExtractGBTile(x, y, 8, 8, tile, 0); LL_notempty = ExtractGBTile(x, y + 8, 8, 8, tile, ((8 *8) * 1)); @@ -632,7 +632,7 @@ int main(int argc, char* argv[]) printf("-sp <props> change default for sprite OAM property bytes (in hex) (default: 0x00)\n"); printf("-px <x coord> metasprites pivot x coordinate (default: metasprites width / 2)\n"); printf("-py <y coord> metasprites pivot y coordinate (default: metasprites height / 2)\n"); - printf("-pw <width> metasprites collision rect widht (default: metasprites width)\n"); + printf("-pw <width> metasprites collision rect width (default: metasprites width)\n"); printf("-ph <height> metasprites collision rect height (default: metasprites height)\n"); printf("-spr8x8 use SPRITES_8x8\n"); printf("-spr8x16 use SPRITES_8x16 (this is the default)\n"); @@ -1400,7 +1400,7 @@ int main(int argc, char* argv[]) } - // Open our file for writing attributes if speciied + // Open our file for writing attributes if specified if (use_map_attributes)mapAttributesBinaryfile.open(output_filename_attributes_bin, std::ios_base::binary); int columns = image.w >> 3; @@ -1433,7 +1433,7 @@ int main(int argc, char* argv[]) if (use_map_attributes)mapAttributesBinaryfile.write((const char*)(&map_attributes[0]), rows * columns); } - // Finalzie the files + // Finalize the files mapBinaryFile.close(); tilesBinaryFile.close(); if (use_map_attributes)mapAttributesBinaryfile.close();
This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.