amethyst / evoli

An ecosystem-simulation game made with Amethyst
https://community.amethyst.rs/t/evoli-introduction/770
Other
217 stars 33 forks source link

Add a basic implementation of the Topplegrass creature #108

Closed Jazarro closed 4 years ago

Jazarro commented 5 years ago

Refer to issue #61 Topplegrass is explained here: https://community.amethyst.rs/t/evoli-creature-designs/814/10

Any entity with the Movement component intelligently avoids obstacles. However, not all entities that can move can steer; for example, Topplegrass is moved only by the wind. Therefore, add a new component tag AvoidObstaclesTag to all entities that are supposed to steer.

Add new resource Wind. Implement debug keyboard inputs to change wind direction and speed. Load initial wind vector from a config file. In order to load from file, pass the assets directory path to the loading state.

Add gravity system that affects entities with the FallingTag.

Add system that deletes Topplegrass entities when they leave the world bounds.

erlend-sh commented 4 years ago

Thanks so much for this, gonna be fun to add another creature in the game!

Do you have any way to test on MacOS by any chance? Two of us with Mac have been unable to run it. This issue might very well predate your PR though, as we can’t run latest master either. As @khskarl said:

A shader is failing to compile and (maybe by consequence) there is a memory leak.

If you happen to be able to help with this we can get this merged faster, as the rest of the maintainers are on hiatus at the moment.

Jazarro commented 4 years ago

I'm afraid I'll not be much use there, as I've never touched a mac in my life. :)

erlend-sh commented 4 years ago

Gotcha. In that case please hang tight as we wait for a developer with a Mac and some attention to spare. :)

Jazarro commented 4 years ago

Force pushed to rebase back onto master.