Free games for graphing calculators: NumWorks, TI-Nspire CX, Casio fx-CG50 and soon TI-84 Plus CE. Balatro, Celeste, Hollow Knight, Minecraft and more.
C calculatorcalculator-gamescasiochesscrossy-roaddrive-madfx-cg50gamesgeometry-dashgraphing-calculatorndlessnumworksnumworks-appsnumworks-calculatornumworks-gamenumworks-gamestetristi-84-plus-ceti-nspire
/* Dune's pictures and font (art.c, made by tools/data.py from the web build). */
#ifndef DN_ART_H
#define DN_ART_H
#include <stdint.h>
/* 4-bit pictures with 16 colours (index 0 transparent): stored as they are, or as rows of runs */
typedef struct { uint16_t w, h; const uint16_t *pal; const uint8_t *px; } dn_raw;
typedef struct { uint16_t w, h; const uint16_t *pal; const uint16_t *rows; const uint8_t *data; } dn_rle;
/* white pictures: 4-bit coverage */
typedef struct { uint16_t w, h; const uint8_t *px; } dn_mask;
/* a sky: a picture (scale 1 or 2) or, when pic is 0, a colour for each row */
typedef struct { uint8_t scale; uint8_t n; const uint16_t *rows; const dn_rle *pic; } dn_sky;
/* Bango Pro: each glyph's box, its offset from the pen (y from the baseline), advance and coverage */
typedef struct { uint8_t w, h; int8_t x, y; uint8_t adv; uint16_t off; } dn_glyph;
typedef struct { const char *chars; uint8_t count, base; const dn_glyph *g; const uint8_t *px; } dn_font;
/* the shop, as the game's BALLS and LANDSCAPES: trail gradient type (0 down, 1 along, 2 checks, 3 round from
(cx, d/2), 4 dots), its size d, colours (0xRRGGBB) and the anchor's offset (offsetY x 100) */
typedef struct { const char *name; uint16_t price; uint8_t rotates, type, d, n; int8_t cx, oy; const uint32_t *colors; } dn_ball_info;
typedef struct { const char *name; uint16_t price; uint32_t surface, line, sky, ground; } dn_land_info;
extern const dn_raw art_ball0;
extern const dn_raw art_shopball0;
extern const dn_raw art_ball1;
extern const dn_raw art_shopball1;
extern const dn_raw art_ball2;
extern const dn_raw art_shopball2;
extern const dn_raw art_ball3;
extern const dn_raw art_shopball3;
extern const dn_raw art_ball4;
extern const dn_raw art_shopball4;
extern const dn_raw art_ball5;
extern const dn_raw art_shopball5;
extern const dn_raw art_ball6;
extern const dn_raw art_shopball6;
extern const dn_raw art_ball7;
extern const dn_raw art_shopball7;
extern const dn_raw art_ball8;
extern const dn_raw art_shopball8;
extern const dn_raw art_ball9;
extern const dn_raw art_shopball9;
extern const dn_raw art_ball10;
extern const dn_raw art_shopball10;
extern const dn_raw art_ball11;
extern const dn_raw art_shopball11;
extern const dn_raw art_ball12;
extern const dn_raw art_shopball12;
extern const dn_raw art_ball13;
extern const dn_raw art_shopball13;
extern const dn_raw art_ball14;
extern const dn_raw art_shopball14;
extern const dn_raw art_ball15;
extern const dn_raw art_shopball15;
extern const dn_raw art_ball16;
extern const dn_raw art_shopball16;
extern const dn_raw art_ball17;
extern const dn_raw art_shopball17;
extern const dn_raw art_ball18;
extern const dn_raw art_shopball18;
extern const dn_raw art_ball19;
extern const dn_raw art_shopball19;
extern const dn_raw art_ball20;
extern const dn_raw art_shopball20;
extern const dn_raw art_ball21;
extern const dn_raw art_shopball21;
extern const dn_raw art_ball22;
extern const dn_raw art_shopball22;
extern const dn_raw art_ball23;
extern const dn_raw art_shopball23;
extern const dn_raw art_ball24;
extern const dn_raw art_shopball24;
extern const dn_raw art_ball25;
extern const dn_raw art_shopball25;
extern const dn_raw *const art_balls[26];
extern const dn_raw *const art_shopballs[26];
extern const dn_raw art_coin;
extern const dn_raw art_coin_big;
extern const dn_mask art_crown;
extern const dn_raw art_play;
extern const dn_raw art_shop;
extern const dn_mask art_cat_balls;
extern const dn_mask art_cat_lands;
extern const dn_mask art_lock;
extern const int8_t art_logo_dx, art_logo_dy;
extern const dn_mask art_logo;
extern const dn_mask art_guide;
extern const dn_rle art_card0;
extern const dn_rle art_preview0;
extern const dn_rle art_card1;
extern const dn_rle art_preview1;
extern const dn_rle art_card2;
extern const dn_rle art_preview2;
extern const dn_rle art_card3;
extern const dn_rle art_preview3;
extern const dn_rle art_card4;
extern const dn_rle art_preview4;
extern const dn_rle art_card5;
extern const dn_rle art_preview5;
extern const dn_rle art_card6;
extern const dn_rle art_preview6;
extern const dn_rle *const art_cards[7];
extern const dn_rle *const art_previews[7];
extern const dn_rle art_sky0_pic;
extern const dn_rle art_sky1_pic;
extern const dn_rle art_sky4_pic;
extern const dn_rle art_sky5_pic;
extern const dn_rle art_dunes;
extern const dn_rle art_moon;
extern const dn_rle art_land1;
extern const dn_rle art_land2;
extern const dn_rle art_sun;
extern const dn_rle art_hills_far;
extern const dn_rle art_vulcan;
extern const dn_rle art_vulcan_fire;
extern const dn_rle art_hills_close;
extern const dn_rle art_mush1;
extern const dn_rle art_mush_far;
extern const dn_rle art_mush_purple;
extern const dn_rle art_mush_close;
extern const dn_rle art_stars;
extern const dn_rle art_planet0;
extern const dn_rle art_planet1;
extern const dn_rle art_planet2;
extern const dn_rle art_planet3;
extern const dn_rle art_planet4;
extern const dn_rle art_snow_far;
extern const dn_rle art_snow_close;
extern const dn_rle art_flakes2;
extern const dn_rle art_flakes1;
extern const dn_rle art_candy_far;
extern const dn_rle art_candy_close;
extern const dn_rle art_candy1;
extern const dn_rle art_candy2;
extern const dn_rle art_candy3;
extern const dn_rle art_cloud;
extern const dn_rle art_earth0;
extern const dn_rle art_earth1;
extern const dn_rle art_earth2;
extern const dn_rle art_earth3;
extern const dn_rle art_earth4;
extern const dn_rle art_earth6;
extern const dn_sky *const art_skies[7];
extern const dn_rle *const art_earths[7];
extern const dn_ball_info art_ball_info_[26];
extern const dn_land_info art_land_info_[7];
extern const dn_font art_f13;
extern const dn_font art_f21;
extern const dn_font art_f32;
extern const dn_font art_f39;
extern const dn_font art_d18;
extern const dn_font art_d50;
#endif