Curation round 21: rock drops, Boss Rush and room setup, Dross, Ashpit and Gehenna enemies, Book of Virtues wisps and Dream Catcher, the last familiars and effects, player damage branches, a Corpse floor and Abyss crash fix, shared constants (186 duplicates)
This commit is contained in:
1 parent
8dbeb1bc4a
commit
6a11163842
184 files changed
+16980
-1419
No files matched your search
@@ -23,7 +23,6 @@
|
||||
// The shot a fresh projectile is: its height, slight random fall, homing, curving and change defaults.
|
||||
constexpr float HEIGHT_START = -23;
|
||||
constexpr float FALL_SPREAD = 0.2f;
|
||||
constexpr float HALF = 0.5f;
|
||||
constexpr float CURVING_DEFAULT = 0.015f;
|
||||
constexpr float ACCELERATION_DEFAULT = 1.01f;
|
||||
constexpr int CHANGE_TIMEOUT_DEFAULT = 30;
|
||||
@@ -245,7 +244,6 @@ constexpr float POOF_SCALE_SHARE = 0.8f;
|
||||
constexpr float TEAR_POOF_SMALL = 0.4f;
|
||||
constexpr float TEAR_POOF_LARGE = 0.8f;
|
||||
constexpr float POOF_SOUND_MARGIN = -80;
|
||||
constexpr float RIGHT_ANGLE = 90;
|
||||
constexpr float CORN_PARTICLE_SPEED = 2;
|
||||
constexpr int CORN_PARTICLES = 4;
|
||||
constexpr int BONE_PARTICLES = 8;
|
||||
@@ -335,7 +333,6 @@ constexpr std::array<std::array<float, 3>, CONTINUUM_COLORS> CONTINUUM_COLORIZES
|
||||
{1, 0, 1}}};
|
||||
|
||||
constexpr int ENTITY_TARBOY = 307;
|
||||
constexpr int ENTITY_NECRO = 828;
|
||||
constexpr int ENTITY_SHADY = 888;
|
||||
constexpr int MOTHER_BALL = 10;
|
||||
constexpr int BEAST_FIRE_BALL = 20;
|
||||
@@ -1083,7 +1080,7 @@ void Entity_Projectile::death_poof_spawn()
|
||||
{
|
||||
poof->posOffset = posOffset;
|
||||
poof->sprite.scale = vector_make(poofScale, poofScale);
|
||||
poof->sprite.rotation = (float)random_below(4) * RIGHT_ANGLE;
|
||||
poof->sprite.rotation = (float)random_below(4) * RIGHT_ANGLE_DEGREES;
|
||||
}
|
||||
if (g_game->room->IsPositionInRoom(pos, POOF_SOUND_MARGIN)) sound_play(sound, 1, volume);
|
||||
}
|
||||
@@ -1479,7 +1476,7 @@ bool Entity_Projectile::wiggles_update()
|
||||
Vector direction = vector_scale(targetPosition, 1 / length);
|
||||
float along = vector_dot(velocity, direction);
|
||||
Vector forward = vector_scale(direction, along);
|
||||
Vector wiggle = vector_scale(vector_rotated(direction, RIGHT_ANGLE), strength * std::sin(phase * 2 * PI_F));
|
||||
Vector wiggle = vector_scale(vector_rotated(direction, RIGHT_ANGLE_DEGREES), strength * std::sin(phase * 2 * PI_F));
|
||||
if (along < length) forward = vector_add(forward, vector_scale(direction, length * ROTGUT_WIGGLE_PUSH));
|
||||
velocity = vector_add(forward, wiggle);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user