A port of Zachtronics' match-4 game HACK*MATCH to the TI-84 Plus CE
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

refactoring, split up palette in preparation to add game over screen, added letter sprites

ariajd27 d00d1ba5 c8ff7277

+44 -47
src/gfx/chars/char_a.png

This is a binary file and will not be displayed.

src/gfx/chars/char_arrow.png

This is a binary file and will not be displayed.

src/gfx/chars/char_b.png

This is a binary file and will not be displayed.

src/gfx/chars/char_c.png

This is a binary file and will not be displayed.

src/gfx/chars/char_d.png

This is a binary file and will not be displayed.

src/gfx/chars/char_e.png

This is a binary file and will not be displayed.

src/gfx/chars/char_f.png

This is a binary file and will not be displayed.

src/gfx/chars/char_g.png

This is a binary file and will not be displayed.

src/gfx/chars/char_h.png

This is a binary file and will not be displayed.

src/gfx/chars/char_i.png

This is a binary file and will not be displayed.

src/gfx/chars/char_j.png

This is a binary file and will not be displayed.

src/gfx/chars/char_k.png

This is a binary file and will not be displayed.

src/gfx/chars/char_l.png

This is a binary file and will not be displayed.

src/gfx/chars/char_m.png

This is a binary file and will not be displayed.

src/gfx/chars/char_n.png

This is a binary file and will not be displayed.

src/gfx/chars/char_o.png

This is a binary file and will not be displayed.

src/gfx/chars/char_p.png

This is a binary file and will not be displayed.

src/gfx/chars/char_q.png

This is a binary file and will not be displayed.

src/gfx/chars/char_r.png

This is a binary file and will not be displayed.

src/gfx/chars/char_s.png

This is a binary file and will not be displayed.

src/gfx/chars/char_t.png

This is a binary file and will not be displayed.

src/gfx/chars/char_u.png

This is a binary file and will not be displayed.

src/gfx/chars/char_v.png

This is a binary file and will not be displayed.

src/gfx/chars/char_w.png

This is a binary file and will not be displayed.

src/gfx/chars/char_x.png

This is a binary file and will not be displayed.

src/gfx/chars/char_y.png

This is a binary file and will not be displayed.

src/gfx/chars/char_z.png

This is a binary file and will not be displayed.

+30 -39
src/gfx/convimg.yaml
··· 1 1 palettes: 2 - - name: global_palette 2 + - name: fixed_palette 3 + max-entries: 16 3 4 fixed-entries: 4 5 - color: {index: 0, r: 0, g: 0, b: 0} 5 6 - color: {index: 1, r: 255, g: 255, b: 255} 6 7 - color: {index: 2, r: 181, g: 49, b: 33} 7 8 - color: {index: 3, r: 179, g: 243, b: 204} 8 9 images: automatic 10 + - name: grid_palette 11 + images: automatic 12 + fixed-entries: 13 + - color: {index: 0, r: 0, g: 0, b: 0} 9 14 10 15 converts: 11 16 - name: misc 12 - palette: global_palette 17 + palette: fixed_palette 13 18 style: rlet 14 19 transparent-color-index: 4 15 20 images: 16 21 - background.png 17 - - exa_empty.png 18 - - exa_full.png 19 22 - title.png 23 + - name: text 24 + palette: fixed_palette 25 + style: rlet 26 + transparent-color-index: 4 27 + images: 28 + - chars/*.png 20 29 - name: grid_icons 21 - palette: global_palette 30 + palette: grid_palette 31 + palette-offset: 16 22 32 style: palette 23 33 images: 24 - - file_blue.png 25 - - file_cyan.png 26 - - file_locked.png 27 - - file_purple.png 28 - - file_red.png 29 - - file_yellow.png 30 - - star_blue.png 31 - - star_cyan.png 32 - - star_purple.png 33 - - star_red.png 34 - - star_yellow.png 35 - - file_match_red.png 36 - - file_match_yellow.png 37 - - file_match_cyan.png 38 - - file_match_blue.png 39 - - file_match_purple.png 40 - - file_erase_1.png 41 - - file_erase_2.png 42 - - star_match.png 43 - - star_erase_1.png 44 - - star_erase_2.png 34 + - files/*.png 35 + - stars/*.png 36 + - name: exas 37 + palette: grid_palette 38 + palette-offset: 16 39 + style: rlet 40 + transparent-color-index: 0 41 + images: 42 + - exas/*.png 45 43 - name: digits 46 - palette: global_palette 44 + palette: fixed_palette 47 45 style: palette 48 46 images: 49 - - digit_0.png 50 - - digit_1.png 51 - - digit_2.png 52 - - digit_3.png 53 - - digit_4.png 54 - - digit_5.png 55 - - digit_6.png 56 - - digit_7.png 57 - - digit_8.png 58 - - digit_9.png 59 - - digit_0_grey.png 47 + - digits/*.png 60 48 61 49 outputs: 62 50 - type: c 63 51 include-file: gfx.h 64 52 palettes: 65 - - global_palette 53 + - fixed_palette 54 + - grid_palette 66 55 converts: 67 56 - misc 68 57 - grid_icons 69 58 - digits 59 + - text 60 + - exas 70 61
src/gfx/digit_0.png src/gfx/digits/digit_0.png
src/gfx/digit_0_grey.png src/gfx/digits/digit_0_grey.png
src/gfx/digit_1.png src/gfx/digits/digit_1.png
src/gfx/digit_2.png src/gfx/digits/digit_2.png
src/gfx/digit_3.png src/gfx/digits/digit_3.png
src/gfx/digit_4.png src/gfx/digits/digit_4.png
src/gfx/digit_5.png src/gfx/digits/digit_5.png
src/gfx/digit_6.png src/gfx/digits/digit_6.png
src/gfx/digit_7.png src/gfx/digits/digit_7.png
src/gfx/digit_8.png src/gfx/digits/digit_8.png
src/gfx/digit_9.png src/gfx/digits/digit_9.png
src/gfx/exa_empty.png src/gfx/exas/exa_empty.png
src/gfx/exa_full.png src/gfx/exas/exa_full.png
src/gfx/file_blue.png src/gfx/files/file_blue.png
src/gfx/file_cyan.png src/gfx/files/file_cyan.png
src/gfx/file_erase_1.png src/gfx/files/file_erase_1.png
src/gfx/file_erase_2.png src/gfx/files/file_erase_2.png
src/gfx/file_locked.png src/gfx/files/file_locked.png
src/gfx/file_match_blue.png src/gfx/files/file_match_blue.png
src/gfx/file_match_cyan.png src/gfx/files/file_match_cyan.png
src/gfx/file_match_purple.png src/gfx/files/file_match_purple.png
src/gfx/file_match_red.png src/gfx/files/file_match_red.png
src/gfx/file_match_yellow.png src/gfx/files/file_match_yellow.png
src/gfx/file_purple.png src/gfx/files/file_purple.png
src/gfx/file_red.png src/gfx/files/file_red.png
src/gfx/file_yellow.png src/gfx/files/file_yellow.png
src/gfx/star_blue.png src/gfx/stars/star_blue.png
src/gfx/star_cyan.png src/gfx/stars/star_cyan.png
src/gfx/star_erase_1.png src/gfx/stars/star_erase_1.png
src/gfx/star_erase_2.png src/gfx/stars/star_erase_2.png
src/gfx/star_match.png src/gfx/stars/star_match.png
src/gfx/star_purple.png src/gfx/stars/star_purple.png
src/gfx/star_red.png src/gfx/stars/star_red.png
src/gfx/star_yellow.png src/gfx/stars/star_yellow.png
+14 -8
src/main.c
··· 443 443 444 444 void init() 445 445 { 446 + // basic graphics display settings 447 + gfx_Begin(); 448 + #ifdef NO_BUFFER 449 + gfx_SetDrawScreen(); 450 + #else 451 + gfx_SetDrawBuffer(); 452 + #endif 453 + 454 + // set the weird combination palette 455 + unsigned char global_palette[32 + sizeof_grid_palette]; 456 + for (unsigned char i = 0; i < sizeof_fixed_palette; i++) global_palette[i] = fixed_palette[i]; 457 + for (unsigned char i = 0; i < sizeof_grid_palette; i++) global_palette[i + 32] = grid_palette[i]; 458 + gfx_SetPalette(global_palette, 32 + sizeof_grid_palette, 0); 459 + 446 460 toExit = false; 447 461 448 462 // find the high score ··· 468 482 469 483 int main(void) 470 484 { 471 - gfx_Begin(); 472 - #ifdef NO_BUFFER 473 - gfx_SetDrawScreen(); 474 - #else 475 - gfx_SetDrawBuffer(); 476 - #endif 477 - gfx_SetPalette(global_palette, sizeof_global_palette, 0); 478 - 479 485 init(); 480 486 titleScreen(); 481 487