src/entities/Player.js
/**
	* Resets the player after a death.
	*
	* @return {Player} A reference to this game entity.
	*/
Resets the player after a death.
@return {Player} A reference to this game entity.
Resets the player after a death . @return { Player } A reference to this game entity .
reset() {
		this.health = this.maxHealth;
		this.status = STATUS_ALIVE;
		this.weaponSystem.reset();
		this.world.fpsControls.reset();
		this.world.uiManager.showFPSInterface();
		const animation = this.animations.get( 'player_death' );
		animation.stop();
		return this;
	}
reset ( ) { this . health = this . maxHealth ; this . status = STATUS_ALIVE ; this . weaponSystem . reset ( ) ; this . world . fpsControls . reset ( ) ; this . world . uiManager . showFPSInterface ( ) ; const animation = this . animations . get ( 'player_death' ) ; animation . stop ( ) ; return this ; }
Resets the player after a death.
Resets the player after a death .