From 640074401089f82f4dd0e910b2ff953314f8a90a Mon Sep 17 00:00:00 2001 From: Kistaro Windrider Date: Fri, 22 Sep 2023 22:19:43 -0700 Subject: [PATCH] lock palette for UI. add checkbox sprite --- bitplane-thingie.p8 | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/bitplane-thingie.p8 b/bitplane-thingie.p8 index b860bee..88175dd 100644 --- a/bitplane-thingie.p8 +++ b/bitplane-thingie.p8 @@ -16,6 +16,12 @@ function _init() -- enable mouse poke(0x5f2d, 0x1) + -- lock bottom 16 rows to default palette + pal({[0]=0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15}, 2) + poke(0x5f5f, 0x10) + poke(0x5f7e, 0xff) + poke(0x5f7f, 0xff) + -- reset mouse position last_segment = nil segment = nil @@ -24,6 +30,9 @@ function _init() -- reset color plane_mask = 0xff + + -- experimental additive palette 1 + pal({[0]=0,136,3,4,1,141,13,5,6,8,139,10,140,14,12,7}, 1) end function _update60() @@ -129,3 +138,11 @@ __gfx__ 00700700557550005595500055a550005595500055b5500055b5500055b5500055b5500000000000000000000000000000000000000000000000000000000000 000000000057500000595000005a5000005a5000005b5000005b5000005a50000059500000000000000000000000000000000000000000000000000000000000 00000000005500000055000000550000005500000055000000550000005500000055000000000000000000000000000000000000000000000000000000000000 +00000000555555565555555600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 +00000000511111165111111600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 +00000000511111165117711600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 +00000000511111165177771600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 +00000000511111165177771600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 +00000000511111165117711600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 +00000000511111165111111600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 +00000000666666666666666600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000