Skip to content
Snippets Groups Projects
Forked from Illuna-Minetest / minetest_game
1991 commits behind the upstream repository.
  • Auke Kok's avatar
    5cd4b5a2
    TNT: make tnt:boom visual a particle, and larger · 5cd4b5a2
    Auke Kok authored
    We reuse the tnt:boom texture for a particle that is added by the
    on_construct() of tnt:boom, and has a short expiry time (0.2sec).
    It is 3 nodes larged, centered on the explosion.
    
    We then make tnt:boom airlike so it doesn't have a texture, and it's
    the thing that emits lots of light (we could even make it exist a
    bit longer).
    
    The nice thing about particles is that the client is less susceptible
    to lag and will always remove them as fast as possible, so this makes
    the visual more constant and responsive.
    5cd4b5a2
    History
    TNT: make tnt:boom visual a particle, and larger
    Auke Kok authored
    We reuse the tnt:boom texture for a particle that is added by the
    on_construct() of tnt:boom, and has a short expiry time (0.2sec).
    It is 3 nodes larged, centered on the explosion.
    
    We then make tnt:boom airlike so it doesn't have a texture, and it's
    the thing that emits lots of light (we could even make it exist a
    bit longer).
    
    The nice thing about particles is that the client is less susceptible
    to lag and will always remove them as fast as possible, so this makes
    the visual more constant and responsive.
init.lua 13.52 KiB