Blood particles

This commit is contained in:
2024-02-10 13:58:42 +01:00
parent 5a66d6ad12
commit 062383407c
3 changed files with 77 additions and 10 deletions

View File

@@ -115,6 +115,32 @@ static ParticleEmitter GET_FIREBALL_EMITTER() {
.data.blend = BLEND_ADDITIVE
};
}
static ParticleEmitter GET_BLOOD_EMITTER() {
return (ParticleEmitter) {
.emitterLifetime = 0.3f,
.data.emmitRate = 1.8f,
.data.minOffset = { -3.6f, -3.6f },
.data.maxOffset = { 3.6f, 3.6f },
.data.minStartVel = { 4.5f, 7.3f },
.data.maxStartVel = { 2.5f, 3.3f },
.data.minEndVel = { -0.8f, 1.2f },
.data.maxEndVel = { -0.4f, 1.6f },
.data.minStartSize = 2.45f,
.data.maxStartSize = 3.3f,
.data.minEndSize = 0.8f,
.data.maxEndSize = 1.1f,
.data.minStartRotSpeed = 8.0f,
.data.maxStartRotSpeed = 14.0f,
.data.minEndRotSpeed = 4.5f,
.data.maxEndRotSpeed = 6.2f,
.data.startColor = { 210, 0, 0, 255 },
.data.endColor = { 110, 10, 10, 32 },
.data.minLifetime = 0.23,
.data.maxLifetime = 0.37,
.data.blend = BLEND_ALPHA,
.data.tileID = getParticleTypeTile(PARTICLE_SMALL_SQUARE),
};
}
typedef struct Particle {
Vector2 pos;