init
This commit is contained in:
commit
6250d23297
53 changed files with 6381 additions and 0 deletions
120
lib/pixel-art.ts
Normal file
120
lib/pixel-art.ts
Normal file
|
|
@ -0,0 +1,120 @@
|
|||
/**
|
||||
* Hand-drawn pixel art, stored as text so it's easy to read and edit.
|
||||
*
|
||||
* Each string is one row. Each character is one pixel:
|
||||
* . transparent G gold W parchment white
|
||||
* D stone grey T spirit teal R heart red
|
||||
* E empty-heart outline
|
||||
*/
|
||||
|
||||
// These are the Tailwind theme colors from app/globals.css.
|
||||
export const PALETTE: Record<string, string> = {
|
||||
G: "var(--color-gold-bright)",
|
||||
W: "var(--color-ink)",
|
||||
D: "var(--color-stone)",
|
||||
T: "var(--color-teal)",
|
||||
R: "var(--color-heart)",
|
||||
E: "var(--color-heart-empty)",
|
||||
};
|
||||
|
||||
export const SUN = [
|
||||
".....G.....",
|
||||
".G.......G.",
|
||||
"...GGGGG...",
|
||||
"..GGGGGGG..",
|
||||
"..GGGGGGG..",
|
||||
"G.GGGGGGG.G",
|
||||
"..GGGGGGG..",
|
||||
"..GGGGGGG..",
|
||||
"...GGGGG...",
|
||||
".G.......G.",
|
||||
".....G.....",
|
||||
];
|
||||
|
||||
export const MOON = [
|
||||
"...........",
|
||||
"....WWWW...",
|
||||
"..WWWW.....",
|
||||
"..WWW......",
|
||||
".WWW.......",
|
||||
".WWW.......",
|
||||
".WWW.......",
|
||||
"..WWW......",
|
||||
"..WWWW.....",
|
||||
"....WWWW...",
|
||||
"...........",
|
||||
];
|
||||
|
||||
export const CLOUD = [
|
||||
"...........",
|
||||
"...........",
|
||||
"....WWW....",
|
||||
"...WWWWW...",
|
||||
".WWWWWWWW..",
|
||||
"WWWWWWWWWW.",
|
||||
"WWWWWWWWWWW",
|
||||
".WWWWWWWWW.",
|
||||
"...........",
|
||||
"...........",
|
||||
"...........",
|
||||
];
|
||||
|
||||
export const RAIN = [
|
||||
"....DDD....",
|
||||
"...DDDDD...",
|
||||
".DDDDDDDD..",
|
||||
"DDDDDDDDDD.",
|
||||
"DDDDDDDDDDD",
|
||||
".DDDDDDDDD.",
|
||||
"...........",
|
||||
".T...T...T.",
|
||||
"...T...T...",
|
||||
".T...T...T.",
|
||||
"...........",
|
||||
];
|
||||
|
||||
export const SNOW = [
|
||||
"....DDD....",
|
||||
"...DDDDD...",
|
||||
".DDDDDDDD..",
|
||||
"DDDDDDDDDD.",
|
||||
"DDDDDDDDDDD",
|
||||
".DDDDDDDDD.",
|
||||
"...........",
|
||||
".W...W...W.",
|
||||
"...........",
|
||||
"...W...W...",
|
||||
"...........",
|
||||
];
|
||||
|
||||
export const STORM = [
|
||||
"....DDD....",
|
||||
"...DDDDD...",
|
||||
".DDDDDDDD..",
|
||||
"DDDDDDDDDD.",
|
||||
"DDDDDDDDDDD",
|
||||
".DDDGGDDDD.",
|
||||
"....GG.....",
|
||||
"...GG......",
|
||||
"..GGGGG....",
|
||||
"....GG.....",
|
||||
"...G.......",
|
||||
];
|
||||
|
||||
export const FOG = [
|
||||
"...........",
|
||||
".DDDDDDDD..",
|
||||
"...........",
|
||||
"..DDDDDDDDD",
|
||||
"...........",
|
||||
"DDDDDDDD...",
|
||||
"...........",
|
||||
".DDDDDDDDD.",
|
||||
"...........",
|
||||
"...DDDDDD..",
|
||||
"...........",
|
||||
];
|
||||
|
||||
export const HEART_FULL = [".RR.RR.", "RRRRRRR", "RRRRRRR", ".RRRRR.", "..RRR..", "...R..."];
|
||||
export const HEART_HALF = [".RR.EE.", "RRRREEE", "RRRREEE", ".RRREE.", "..RRE..", "...R..."];
|
||||
export const HEART_EMPTY = [".EE.EE.", "EEEEEEE", "EEEEEEE", ".EEEEE.", "..EEE..", "...E..."];
|
||||
Loading…
Add table
Add a link
Reference in a new issue