Player Center
Functions
movePlayersToCenter
▸ movePlayersToCenter(radius?
): void
Helper function to move all of the players to where they would normally go when arriving at a new floor. (In normal mode, this is the center of the room. In Greed Mode, this is below the top door.)
If there is more than one player, they will be distributed around the center in a circle.
This function emulates what happens in the vanilla game when you travel to a new floor.
Parameters
Name | Type | Default value | Description |
---|---|---|---|
radius | float | 10 | Optional. The radius of the circle. Default is 10. |
Returns
void
Defined in
packages/isaacscript-common/src/functions/playerCenter.ts:22