Implement being able to drop through soft platforms (#64)
CI / build-and-test (push) Successful in 1m47s
CI / production-build (push) Successful in 10m53s

Reviewed-on: #64
Co-authored-by: Álex Román Núñez <eirexe@eirteam.moe>
This commit was merged in pull request #64.
This commit is contained in:
2026-09-26 10:38:51 +00:00
committed by EIREXE
parent 66a817cd05
commit 615872f29c
8 changed files with 158 additions and 33 deletions
+8
View File
@@ -57,6 +57,14 @@ impl FighterSurfaceState {
*self = Self::Grounded { line_id };
}
pub fn clear_polygon_ignore(&mut self, polygon: usize) {
let Self::Airborne { ignored_polys, .. } = self else {
return;
};
ignored_polys.retain(|element| element.polygon != polygon);
}
pub fn ignore_polygon(&mut self, polygon: usize, duration_frames: u32) {
let Self::Airborne { ignored_polys, .. } = self else {
return;