SandPond icon indicating copy to clipboard operation
SandPond copied to clipboard

More types of plant

Open TodePond opened this issue 4 years ago • 8 comments
trafficstars

Maybe it would be cool to have more types of plant. The current plant could be renamed to grass or moss our something. Then we could have vines and other things maybe. Maybe they should need water to grow.

TodePond avatar May 06 '21 15:05 TodePond

What if the type of plant changes depending on environment if in water seaweed if touching stone moss if near wood vine

ajawsome4ev avatar May 24 '21 15:05 ajawsome4ev

It could do but it sounds more complicated! It would be cool to try. I think that sometimes I would want to specifically choose a certain type of plant though, like a tree VS grass VS a flower 🤔

TodePond avatar May 24 '21 17:05 TodePond

i did try it ` element Seed { colour "Brown" emissive "Green" category "Life" prop temperature ROOM

symbol W Water
symbol S Seaweed
symbol T Wood
symbol V Vine
symbol N Sand
symbol C Coral
symbol G Grass
symbol D Dirt

@ => _
_    @

all(xyz.directions) {
	@W => S.
}

all(xyz.directions) {
	@T => V.
}

all(xyz.directions) {
	@N => C.
}

all(xyz.directions) {
	@D => G.
}

}` Makes the game EXTREMELY LAGGY though and i only tried it with dirt to make grass/ the plant element

ajawsome4ev avatar May 24 '21 23:05 ajawsome4ev

` element Seed { colour "Brown" emissive "Green" category "Life" prop temperature ROOM

symbol W Water
symbol S Seaweed
symbol T Wood
symbol V Vine
symbol N Sand
symbol C Coral
symbol G Grass
symbol D Dirt

@ => _
_    @

all(xyz.directions) {
	@W => S.
}

all(xyz.directions) {
	@T => V.
}

all(xyz.directions) {
	@N => C.
}

all(xyz.directions) {
	@D => G.
}

}`

ajawsome4ev avatar May 24 '21 23:05 ajawsome4ev

thats the code by itself

ajawsome4ev avatar May 24 '21 23:05 ajawsome4ev

Cool! I think having lots of different all loops is the thing slowing it down. If I remember correctly, the transpiler doesn't optimise it that well. Either, you could try changing them to any. Or, you could have just one all loop and place all the rules in the same block. Or you could do both!

TodePond avatar May 25 '21 06:05 TodePond

okay i will work on it

ajawsome4ev avatar May 25 '21 10:05 ajawsome4ev

I think using water to grow would be cool to see.

ghost avatar Jun 28 '21 22:06 ghost