notes: How to Jump, Mars
This commit is contained in:
1 parent
288ea53ab4
commit
d29227d4e8
1 file changed
+20
@@ -50,3 +50,23 @@
|
||||
9, 10 and 12, 14 (if intact) from the flag-0 group; others are left. Fire place entities: variant 0/1 the flag-0
|
||||
group, 2/3 all (only while collidable); grid entities on their cells are removed. Each pick uses RNG(Next, 0x23).
|
||||
- Spawn: a negative type is an entity (Game::Spawn(-type, variant)); every spawned cell also gets effect 1000.15.
|
||||
|
||||
## How to Jump (UseActiveItem's `== 0x11a` test @0x5b78d9, no case of its own)
|
||||
|
||||
- target = pos + velocity * 60, Room::GetClampedPosition; step = normalize(pos - target) * 10; walking back from the
|
||||
target while the remaining distance lasts: a spot with Room::GetGridCollisionAtPos == 0 and no enemy within
|
||||
(player size + enemy size + 5) is the landing; collision classes (entity and grid) set 0; sound 0x41f;
|
||||
PlayExtraAnimation (Jump, 20 frames, ~30 px arc in 001.000_player.anm2) unless _canFly. items.xml cooldown 14.
|
||||
|
||||
## Mars (593 / 0x251)
|
||||
|
||||
- update_body_animations 00779b40 (around the HasCollectible(0x251) loop over actions 0..3): an action triggered with
|
||||
the same last action (+0x1e9c) and ticks since (+0x1ea0) < 11 and cooldown (+0x1e98..0x1e90 per the db) < 1 adds
|
||||
temporary effect 0x251 (items.xml cooldown=10 ticks), stores the direction (+0x1e94) and resets the cooldown from
|
||||
_marsUnk1 (90). The ticks counter caps at 10000.
|
||||
- update_effects 00794e50: on the dash's first tick AddVelocity(axis unit * 4.0) (mirrored in the mirror world),
|
||||
sound, costume; the cooldown counts down 1 a tick (2 with two items), a sound at -1.
|
||||
- HandleCollision 0078e1f0: touching a non-friendly enemy during 0x251 removes it, velocity = normalize(pos -
|
||||
enemy) * |velocity|, dash_impact. Entity_Player::dash_impact 007c8240: invulnerability +0x13bc at least 30, 8
|
||||
effects 1000.147 (fire jet) at 40 px with AddBurn(10), QueryRadius: enemies within size + 80 knocked back,
|
||||
projectiles reflected/deflected.
|
||||
Reference in new issue
Block a user