Skip to content
Snippets Groups Projects
Commit c9133337 authored by Vanessa Ezekowitz's avatar Vanessa Ezekowitz
Browse files

use four randomly-chosen smoke textures derived from real smoke,

also widen the particle size range
makes for a much more varied smoke pattern
parent 375a5701
No related branches found
No related tags found
No related merge requests found
......@@ -57,6 +57,7 @@ minetest.register_abm({
interval = 1,
chance = 2,
action = function(pos, node)
local image_number = math.random(4)
minetest.add_particlespawner(
8, --particles amount
1, --time
......@@ -68,10 +69,10 @@ minetest.register_abm({
{x=0,y=0,z=0}, --max. particle acceleration
0.5, --min. time particle expiration
3, --max. time particle expiration
8, --min. particle size
2, --min. particle size
10, --max. particle size
false, --collision detection
"smoke_particle.png" --textures
"smoke_particle_"..image_number..".png" --textures
)
end,
})
......
fake_fire/textures/smoke_particle.png

200 B

fake_fire/textures/smoke_particle_1.png

690 B

fake_fire/textures/smoke_particle_2.png

647 B

fake_fire/textures/smoke_particle_3.png

678 B

fake_fire/textures/smoke_particle_4.png

674 B

0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment