Curation round 15: restart and mods, Brimstone and Tech X, room gaps, eight bosses, the Womb and Mom's Heart, the Forgotten and tainted starts, alt path enemies and exits

This commit is contained in:
shweet committed 2026-11-20 20:54:59 -05:00
1 parent 6e3da161fc
commit 78a2680134
128 files changed
+13196 -2933

No files matched your search

+15 -3
View File
@@ -9,6 +9,8 @@
#include <cmath>
constexpr float BEZIER_HALF = 0.5f;
constexpr float RING_HANDLE = 0.3466f;
constexpr int RING_SEGMENTS = 6;
constexpr int BEZIER_LENGTH_STEPS = 10;
constexpr float SMOOTHING_FULL_LENGTH = 200;
constexpr float PLAYER_CUT_DISTANCE_SQUARED = 100;
@@ -335,10 +337,20 @@ void HomingLaser::apply_sample_wiggle(float, float)
reconstruction_missing("HomingLaser::apply_sample_wiggle 009a0fa0");
}
// 009a0850
void HomingLaser::build_ring_bezier()
// 009a0850 Lays out a ring of radius around a center: seven points (the last closing the circle) with handles along
// its tangent. Spoon Bender's ring bending toward enemies is not reconstructed yet.
void HomingLaser::build_ring_bezier(const Vector& center, bool isHoming, Entity*, float radius)
{
reconstruction_missing("HomingLaser::build_ring_bezier 009a0850");
for (int i = 0; i <= RING_SEGMENTS; i++)
{
float angle = 0 - ((float)i / RING_SEGMENTS * PI_F + (float)i / RING_SEGMENTS * PI_F);
Vector point = vector_make(std::cos(angle) * radius + center.x, std::sin(angle) * radius + center.y);
float tangentAngle = angle - PI_F / 2;
Vector tangent = vector_make(std::cos(tangentAngle) * radius * RING_HANDLE,
std::sin(tangentAngle) * radius * RING_HANDLE);
bezier.push_back({point, vector_sub(point, tangent), vector_add(point, tangent)});
}
if (isHoming) reconstruction_missing("HomingLaser::build_ring_bezier 009a0850 (a homing ring)");
}
// 0099f2c0