grass: go back to authentic grass

how could i forego dwarfs really
This commit is contained in:
mehbark 2023-09-03 08:19:56 -04:00
parent 0ef71177c7
commit d0948a9d9b

View file

@ -4,10 +4,12 @@ import { Main, n_of, pick_random, render_and_copy } from "./common.tsx";
// meh, this seems to be the least worst option
// random ascii rocks and bunnies and such might be neat but would
// be total possible actually so i'm going to do that now
const grass_chars = "^".split("");
const grass_chars = ".,'`".split("");
// const grass_chars = ["^", '"', "'", ";", ":", "*", "+", "~"];
// authentic colors are kind of ugly
const grass_colors = ["#9DDA33", "#10F565"];
const grass_colors = ["#136D15", "#117C13", "#138510", "#268B07", "#41980A"];
// const grass_colors = ["#136D15", "#117C13", "#138510", "#268B07", "#41980A"];
// i want to keep this minimal (i want to have a lot of grass :])
// b works nicely i think
@ -58,7 +60,8 @@ const Blade = ({ x, y }: { x: number; y: number }) => (
);
// ☺ is too inconsistently rendered i think
const statics = "r•gbpM".split("");
// i can't NOT have it come on
const statics = "r•gbpM☺".split("");
const static_colors: Record<string, string[]> = {
r: ["rgb(215, 155, 45)"],
// turns out df has a lot of rocks
@ -177,6 +180,7 @@ const static_colors: Record<string, string[]> = {
"rgb(18, 254, 207)",
"rgb(160, 160, 160)",
],
"☺": ["grey", "rgb(113, 187, 176)"],
};
const StaticGuy = () => {
const stat = pick_random(statics);
@ -231,4 +235,4 @@ const Field = ({ width }: { width: number }) => (
// adding more grass doesn't really help and mainly just causes size problems
// takes some shuffling to get a nice distribution of statics
render_and_copy(<Field width={25} />);
render_and_copy(<Field width={30} />);