Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More types of plant #16

Open
TodePond opened this issue May 6, 2021 · 8 comments
Open

More types of plant #16

TodePond opened this issue May 6, 2021 · 8 comments
Labels
enhancement New feature or request

Comments

@TodePond
Copy link
Owner

TodePond commented May 6, 2021

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 TodePond added the enhancement New feature or request label May 6, 2021
@ajawsome4ev
Copy link
Contributor

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

@TodePond
Copy link
Owner Author

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 🤔

@ajawsome4ev
Copy link
Contributor

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
Copy link
Contributor

`
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
Copy link
Contributor

thats the code by itself

@TodePond
Copy link
Owner Author

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!

@ajawsome4ev
Copy link
Contributor

okay i will work on it

@ghost
Copy link

ghost commented Jun 28, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants