A town simulation in pale isometric line art, implemented with Ritmo ECS and PixiJs 3D
// Copied from typeonce-dev packages/brand/src (commit 612caa02). Change it there and copy it again.
// Pixel-art versions of the Typeonce mark, for games. Each string is one row
// and `#` is one filled pixel. `pnpm brand:generate` (in `apps/dev`) renders
// them into `apps/dev/docs/brand/pixel/`.
//
// The grids put the vector construction (`./mark.ts`) on whole
// pixels: bar and ear 4 / 8, gap 2 / 4, stem 5 / 10 at 16 / 32 px. The stem
// top and the ear's end land on the golden sections of the square, the inner
// curve shares its centre with the stem shoulder, and every leaf corner uses
// the same steps. Tips are square pixels.
export const PIXEL_MARK_16 = [
"....############",
"..##############",
".##############.",
".#############..",
"#######.........",
"######..........",
"#####...###.....",
"####...####.....",
".###..#####.....",
"..##..#####.....",
"......#####.....",
"......#####.....",
"......#####.....",
"......#####.....",
"......####......",
"......###.......",
];
export const PIXEL_MARK_32 = [
".........#######################",
".......#########################",
".....###########################",
"....###########################.",
"...############################.",
"..############################..",
"..###########################...",
".##########################.....",
".###############................",
"##############..................",
"############....................",
"###########.....................",
"##########.......#####..........",
"##########.....#######..........",
"#########.....########..........",
".########....#########..........",
".#######.....#########..........",
"..######....##########..........",
"...#####....##########..........",
".....###....##########..........",
"............##########..........",
"............##########..........",
"............##########..........",
"............##########..........",
"............##########..........",
"............##########..........",
"............##########..........",
"............#########...........",
"............#########...........",
"............########............",
"............#######.............",
"............#####...............",
];
// Letters for the wordmark next to the 32 px mark: x-height 11 (rows 0-10),
// descenders to row 14, 3 px stems, and the mark's corner steps.
export const PIXEL_LETTERS = {
y: [
"###.....###",
"###.....###",
".###...###.",
".###...###.",
"..###..###.",
"..###.###..",
"..###.###..",
"...#####...",
"...#####...",
"....###....",
"....###....",
"....###....",
"...###.....",
"#####......",
"####.......",
],
p: [
"###.#####..",
"##########.",
"####...####",
"###.....###",
"###.....###",
"###.....###",
"###.....###",
"###.....###",
"####...####",
"##########.",
"###.#####..",
"###........",
"###........",
"###........",
"###........",
],
e: [
"...#####...",
".#########.",
"####...####",
"###.....###",
"###########",
"###########",
"###........",
"###........",
"####...###.",
".#########.",
"...#####...",
],
o: [
"...#####...",
".#########.",
"####...####",
"###.....###",
"###.....###",
"###.....###",
"###.....###",
"###.....###",
"####...####",
".#########.",
"...#####...",
],
n: [
"###.####..",
"#########.",
"####...###",
"###....###",
"###....###",
"###....###",
"###....###",
"###....###",
"###....###",
"###....###",
"###....###",
],
c: [
"...#####..",
".########.",
"####...###",
"###.......",
"###.......",
"###.......",
"###.......",
"###.......",
"####...###",
".########.",
"...#####..",
],
} as const;
// The letters after the T, in order.
export const PIXEL_WORDMARK = ["y", "p", "e", "o", "n", "c", "e"] as const;