From a375aa7d89de59fcd5c36c294ebd23d1b01e9edd Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Mon, 26 May 2025 08:45:28 +0200 Subject: [PATCH] shmup:: fuel particles in space rocks --- shmup.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/shmup.cpp b/shmup.cpp index de9080a0..4d9586c0 100644 --- a/shmup.cpp +++ b/shmup.cpp @@ -1028,6 +1028,13 @@ void movePlayer(monster *m, int delta) { m->inertia[1] -= sin(godir[cpid]) * coef * playergo[cpid]; avg_inertia[1] -= sin(godir[cpid]) * coef * playergo[cpid] / 2; } + + if(playergo[cpid] > 0 && m->base->land == laAsteroids) { + auto fd = flashdata(ticks, rand() % 16, m->base, getcs().haircolor >> 8, 100); + fd.angle_matrix = m->at * pispin * xpush(cgi.scalefactor/4) * ypush((rand() % 2 ? 1 : -1) * cgi.scalefactor/10) * spin(randd() * 15._deg); + flashes.push_back(fd); + } + if(falling) { vector below; manual_celllister mcl;