This commit is contained in:
John Alanbrook 2024-08-27 20:56:45 -05:00
parent 6c6593c3d9
commit 603d9a5406
2 changed files with 5 additions and 1 deletions

View file

@ -4,7 +4,6 @@ debug.urnames = false;
debug.termout = true; debug.termout = true;
debug.console = false; debug.console = false;
debug.cheat = false; debug.cheat = false;
debug.fn_break = function(fn,obj = globalThis) { debug.fn_break = function(fn,obj = globalThis) {
if (typeof fn !== 'function') return; if (typeof fn !== 'function') return;

View file

@ -17,6 +17,11 @@ emitter.draw = function()
render.draw(this.shape, this.ssbo, pars.length); render.draw(this.shape, this.ssbo, pars.length);
} }
emitter.kill = function()
{
emitters.remove(this);
}
var std_step = function(p) var std_step = function(p)
{ {
if (p.time < this.grow_for) { if (p.time < this.grow_for) {