阻滞器

From DDraceNetwork
Revision as of 06:10, 27 May 2023 by Darkh (talk | contribs) (Created page with "这个特性带来了下面这些影响:")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

阻滞器(//)是DDRace特有的tile,它在阻止玩家通过的同时允许其他实体通过。阻滞器有三种类型:分别从单向、双向或者四向阻滞玩家的移动。


关于碰撞和碰撞箱

阻滞器不会采用插值的碰撞检测。正因如此,如果你通过阻滞器的碰撞箱的“时刻”处在两个ticks之间,你将会直接穿过去而不会滞留在阻滞器中。

这个特性带来了下面这些影响:

  • 如果你运动前一tick就处在阻滞器中会被滞留。
  • 使用Ninja可以轻易地越过阻滞器。


碰撞箱

  • Be aware - since stoppers are easily skippable, these hitboxes don't mean much due to the fact that one can easily skip several units through a stopper with speed.
    • 1-way stoppers (assumed to be pointing upwards) will prevent further downwards motion starting a distance 34 units upwards from the center but 16 units leftwards, rightwards, and downwards from the center.
    • 2-way stoppers (assumed to be pointing up and down) will prevent inwards motion starting a distance 34 units upwards and downwards from the center but 16 units left and right from the center.
    • 4-way stoppers will prevent inwards motion starting a distance 34 units in all directions from the center. Keep in mind that the hitbox is "+" shaped rather than square shaped.