1package com.fs.starfarer.api.impl.campaign.world;
5import org.lwjgl.util.vector.Vector2f;
7import com.fs.starfarer.api.EveryFrameScript;
8import com.fs.starfarer.api.campaign.SectorEntityToken;
9import com.fs.starfarer.api.util.IntervalUtil;
10import com.fs.starfarer.api.util.Misc;
35 float dur = 1f + 2f * (float) Math.random();
37 float size = 3f + (float) Math.random() * 5f;
39 Color color =
new Color(255,100,255,175);
43 vel.scale(5f + (
float) Math.random() * 10f);
static void spawnMote(SectorEntityToken from)
MoteParticleScript(SectorEntityToken entity, float moteSpawnRate)
void advance(float amount)
void advance(float amount)
static Vector2f getUnitVectorAtDegreeAngle(float degrees)
static float getDays(float amount)
static Vector2f getPointWithinRadius(Vector2f from, float r)
static ParticleControllerAPI[] addGlowyParticle(LocationAPI location, Vector2f loc, Vector2f vel, float size, float rampUp, float dur, Color color)
LocationAPI getContainingLocation()
boolean isInCurrentLocation()