Skip to content

Instantly share code, notes, and snippets.

@mxashlynn
Last active March 1, 2024 04:06
Show Gist options
  • Save mxashlynn/6e7d09987c2255a8cb351309b8b9103a to your computer and use it in GitHub Desktop.
Save mxashlynn/6e7d09987c2255a8cb351309b8b9103a to your computer and use it in GitHub Desktop.

GB Studio Numbers Cheat Sheet

Certain values relevant to GB Studio development! Information compiled by 2BitCrook.

Backgrounds

  • 8x8 = The size of a background tile.
  • 8x16 = The size of a sprite tile.
  • 16x16 = Two sprite tiles, a metasprite.
  • 72x64 = Six sprite tiles combined, the largest connected metasprite one can create.

Maxima & Minima

  • 3 = Colours can be used for sprites (excluding 1 transparent color).
  • 4 = Colours can be used for backgrounds and UI.
  • 5 = Unique projectiles per scene.
  • 10 = Sprite tiles can be loaded in one row (scanline) before dropping out.
  • 10 = Active actors can be on screen at once.
  • 16 = GBC Palettes total, 8 for background and 8 for sprites. Each palette can hold 4 colours.
  • 20 = Active actors over a larger scene.
  • 38 = Maximum amount of 8x16 sprite tiles on screen at once (excluding 2 reserved for Emote).
  • 52 = Maximum amount of text characters for DMG (original Gameboy) before getting overwritten.
  • 96 = Max amount of sprite tiles in a scene total.
  • 116 = Maximum amount of text characters for GBC before getting overwritten.
  • 512 = Total variables, global and local.
  • 32767 = Max variable value.
  • -32768 = Min variable value.

Tile Counts

  • 128 = Max Background Tiles in a scene to be able to have 96 sprite tiles available.
  • 192 = Max Background Tiles in a scene and still be able to use dialog/text. 64 sprite tiles available.
  • 256 = Max Background Tiles in a scene that isn't logo mode. 64 sprite tiles available.
  • 360 = Amount of tiles that make up a 160x144 resolution. All tiles can be unique in logo mode. 12 sprite tiles available.

Pixel Counts

  • 160 x 144 = The base resolution for the Gameboy and smallest size for a scene.
  • 512 x 2040 = Maximum size for a scene height wise.
  • 1016x1024 = Maximum size for a scene equalish size.
  • 2040 x 512 = Maximum size for a scene length wise.

Colour Codes

  • #071821 - Darkest tone for sprites and backgrounds
  • #306850 - Mid dark tone for backgrounds only.
  • #86c06c - Mid light tone for sprites and backgrounds.
  • #e0f8cf - Lightest tone for sprites and backgrounds
  • #65ff00 - Transparency for sprites.
  • #ff00ff - Transparency for variable width font glyphs.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment