v3.3.0: movement and glyph improvements:

- hero move speed is now calculated based on destination tile
- added particles when glyphs affect movespeed
This commit is contained in:
Evan Debenham
2025-10-10 14:04:23 -04:00
parent e3b0614afc
commit aa32a58dbd
7 changed files with 55 additions and 10 deletions

View File

@@ -88,16 +88,20 @@ public class Emitter extends Group {
}
public void start( Factory factory, float interval, int quantity ) {
//by default the delay is random, up to the interval
startDelayed( factory, interval, quantity, Random.Float(interval));
}
public void startDelayed( Factory factory, float interval, int quantity, float delay ) {
this.factory = factory;
this.lightMode = factory.lightMode();
this.interval = interval;
this.quantity = quantity;
count = 0;
time = Random.Float( interval );
time = interval - delay;
on = true;
started = true;
}