Skip to content

Commit 8d7141d

Browse files
committed
update mapping after create tilegrid
1 parent f56a6fb commit 8d7141d

File tree

1 file changed

+3
-2
lines changed
  • Metro/Metro_RP2350_Match3/match3_game

1 file changed

+3
-2
lines changed

Metro/Metro_RP2350_Match3/match3_game/code.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,8 +218,6 @@
218218
# create tile palette mappers
219219
for i in range(2):
220220
palette_mapper = TilePaletteMapper(remap_palette, 3)
221-
# remap index 2 to each of the colors in mouse colors list
222-
palette_mapper[0] = [0, 1, i + 3]
223221
palette_mappers.append(palette_mapper)
224222

225223
# create tilegrid for each mouse
@@ -228,6 +226,9 @@
228226
mouse_tg.y = display.height // scale_factor // 2
229227
mouse_tgs.append(mouse_tg)
230228

229+
# remap index 2 to each of the colors in mouse colors list
230+
palette_mapper[0] = [0, 1, i + 3]
231+
231232
# USB info lists
232233
mouse_interface_indexes = []
233234
mouse_endpoint_addresses = []

0 commit comments

Comments
 (0)