rogueviz:: newconf:: apple default shape

This commit is contained in:
Zeno Rogue 2023-01-08 16:02:02 +01:00
parent a7f95cfe3d
commit b6c257a264
1 changed files with 42 additions and 1 deletions

View File

@ -105,7 +105,44 @@ vector<string> snake = {
"00555555555555555555555555555555500",
"00000000000000000000000000000000000"
};
vector<string> apple = {
"0000000000000000000000000000000",
"0000000000000000440000000000000",
"0000000000000004114000000000000",
"0000000000000004140000000000000",
"0000000000000041140000000000000",
"0000000000000041140000000000000",
"0000004444444441144444440000000",
"0000041111111111111111114400000",
"0000411111111111111111111140000",
"0004111111111111111111111114000",
"0041111111111111111111111111400",
"0041111111111111111111111111140",
"0041111111111111111111111111140",
"0411111111111111111111111111140",
"0411111111111111111111111111140",
"0411111111111111111111111111140",
"0411111111111111111111111111140",
"0411111111111111111111111111140",
"0711111111111111111111111111160",
"0511111111111111111111111111150",
"0511111111111111111111111111150",
"0051111111111111111111111111150",
"0051111111111111111111111111500",
"0051111111111111111111111111500",
"0005111111111111111111111111500",
"0005111111111111111111111115000",
"0005111111111111111111111115000",
"0000511111111111111111111150000",
"0000051111111111111111111500000",
"0000051111111111111111115000000",
"0000005111111111111111150000000",
"0000000551111511111115500000000",
"0000000005555055555550000000000",
"0000000000000000000000000000000"
};
struct coord {
int x, y;
coord operator + (int d) {
@ -416,6 +453,8 @@ void conf_shapes() {
dialog::add_action([] { fmap = snake; reset_vxy(); popScreen(); });
dialog::addItem("ellipse 50", 'e');
dialog::add_action([] { fmap = genellipse(50, hrand(180)); reset_vxy(); popScreen(); });
dialog::addItem("apple", 'f');
dialog::add_action([] { fmap = apple; reset_vxy(); popScreen(); });
dialog::addBreak(100);
dialog::addBack();
dialog::display();
@ -975,6 +1014,8 @@ extern "C" {
fmap = snake, reset_vxy();
else if(i == 15)
pushScreen(pick_pattern);
else if(i == 16)
fmap = apple, reset_vxy();
}
}