Curation round 20: player update, costumes and render, Missing No., the last actives and cards, familiars, Pin, the Frail, Wormwood and the Heretic, Dross to Gehenna, effects and the devil room purchase, champion colours, the quit path, save fields, shared vector helpers

This commit is contained in:
shweet committed 2026-11-22 00:33:35 -05:00
1 parent ee863e70e6
commit 8dbeb1bc4a
168 files changed
+15682 -2399

No files matched your search

+1 -13
View File
@@ -33,7 +33,6 @@ constexpr float ROOM_SCREEN_SCALE = 0.65f;
constexpr float ROOM_VIEW_HEIGHT = 182;
constexpr float ROOM_VIEW_WIDTH = 338;
constexpr float HALF = 0.5f;
constexpr float DEGREES_TO_RADIANS = 0.017453292f;
// GetRenderZ's bands: the background layer, the door layer and the normal layer sorted by depth.
constexpr int RENDER_INDEX_MASK = 0x3ff;
@@ -59,7 +58,6 @@ constexpr float STAGE_HP_CAP = 10;
constexpr uint32_t STAGE_HP_REDUCED_FROM = 5;
constexpr float STAGE_HP_REDUCED_SCALE = 0.8f;
constexpr float STAGE_HP_MIN = 0.001f;
constexpr float PI_FLOAT = 3.1415927f;
// The knockback a heavy hit leaves: how it slows, and the speed under which it ends.
constexpr float KNOCKBACK_DECAY = 0.95f;
@@ -132,16 +130,6 @@ constexpr int GABRIEL_SPAWNED_BIT = 26;
KAGE_LogMessage(level, (uint8_t*)message);
}
static float vector_length(Vector v)
{
return std::sqrt(v.x * v.x + v.y * v.y);
}
static Vector vector_add(Vector a, Vector b)
{
return vector_make(a.x + b.x, a.y + b.y);
}
// 0067f310 Where a world position draws on screen, optionally snapped to the display's pixels.
Vector render_position_get(const Vector& world, RenderSnap snap)
{
@@ -299,7 +287,7 @@ void Entity::SetSize(float newSize, Vector newSizeMulti, int gridCollisionPoints
{
for (int i = first; i < gridCollisionPoints; i += 2)
{
double angle = (((float)i + (float)i) * PI_FLOAT) / (float)gridCollisionPoints;
double angle = (((float)i + (float)i) * PI_F) / (float)gridCollisionPoints;
collisionPoints.push_back(vector_make((float)std::cos(angle) * size * sizeMulti.x,
(float)std::sin(angle) * size * sizeMulti.y));
}