Skip to content

Commit

Permalink
clarify some things in the comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristopherDrum committed Jul 22, 2023
1 parent dc67e98 commit 855f3d5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions one_bit_wonder.p8
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,11 @@ __lua__
--if you've drawn your pixel art in a specific color, that "base color" will be stored in the image palettes so the extracted image will be identical to the one you dragged in
local base_colors = {}

--palettes are semi-invariant; if you rotate draw colors, you need to update those values in the palette but the *positions* of pal() values for each layer are invariant. If you never change colors (as, say for B&W games) you can just keep a fixed set of palettes.
--palettes are semi-invariant; if you rotate draw colors, you need to update those values in the palette but the *positions* of pal() values for each layer are invariant. If you never change colors (as, say for b&w games) you can just keep a fixed set of palettes.
local palettes = {}

--transparency flags are invariant
--transparency flags are invariant, but assume 0 as transparent.
--modify as needed for your project, or even ignore
local transparency = {0xaaaa, 0xcccc, 0xf0f0, 0xff00}

--a var to let us cycle through extracted images in the post-compression preview
Expand Down

0 comments on commit 855f3d5

Please sign in to comment.