How to generate clumps of minerals?

General discussion about LÖVE, Lua, game development, puns, and unicorns.
User avatar
darkfrei
Party member
Posts: 1168
Joined: Sat Feb 08, 2020 11:09 pm

Re: How to generate clumps of minerals?

Post by darkfrei »

Gunroar:Cannon() wrote: Wed Oct 20, 2021 8:02 pm Woah, that's really cool though advanced. So I could just make the white parts minerals . I just ran it but haven't checked out the code, any way to scale it?
You can make any rules for particles:
* don't get back to spawn point: it makes long connected spaghetti
* chance to skip the tile: the spaghetti has gaps
* avoid to change the tile value on some conditions
and other what you can imagine.

Here (version 02) the starting particle has power = 300, can move and loose one energy and it can make new particle, but with twice less power in it, also it looses the half of power too.
:awesome: in Lua we Löve
:awesome: Platformer Guide
:awesome: freebies
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 16 guests