TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches

◆ Spawn_SetPosition()

void Terraria.Player.Spawn_SetPosition ( int floorX,
int floorY )
inlineprivate

Definition at line 36812 of file Player.cs.

36813 {
36814 position.X = floorX * 16 + 8 - width / 2;
36815 position.Y = floorY * 16 - height;
36816 }
int width
The width of this Entity's hitbox, in pixels.
Definition Entity.cs:46
int height
The height of this Entity's hitbox, in pixels.
Definition Entity.cs:51

References Terraria.Entity.height, and Terraria.Entity.width.

Referenced by Terraria.Player.Spawn(), and Terraria.Player.Spawn_SetPositionAtWorldSpawn().

+ Here is the caller graph for this function: