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

Spawn Nutrients #17

Open
fierydrake opened this issue Feb 3, 2023 · 1 comment
Open

Spawn Nutrients #17

fierydrake opened this issue Feb 3, 2023 · 1 comment
Assignees
Labels

Comments

@fierydrake
Copy link
Collaborator

fierydrake commented Feb 3, 2023

Fixed number of nutrients on screen - when one is collected then a new one will spawn and fade in.

@fierydrake fierydrake changed the title Nutrients Spawn Nutrient Feb 3, 2023
@fierydrake fierydrake changed the title Spawn Nutrient Spawn Nutrients Feb 3, 2023
@fierydrake fierydrake self-assigned this Feb 3, 2023
@fierydrake
Copy link
Collaborator Author

Initial implementation will spawn a given prefab in a randomly selected area within a defined width/height of the spawn area position. You can set the delay between spawns and provide a list of Tags to avoid. When avoiding it will make sure the spawn point is more than the given avoidRadius away from the position of any GameObject with one of the listed Tags.

If necessary we can enhance the avoidance to take account of the size of the object by checking colliders / bounding area or perhaps add a component to specify the avoidance distance per object. But hopefully a global radius will be good enough.

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

No branches or pull requests

1 participant