Cleaned up the code I wrote before by creating a createProfile() method for prompting players to enter their name and storing the username in the @variable name which is called in the constructor.
Removed the this.username before this.add.text() in the displayProfile() method since it's redundant.
Added quiz() method. Called quiz() method before the player enter the next room.
Cleaned up the code I wrote before by creating a createProfile() method for prompting players to enter their name and storing the username in the @variable name which is called in the constructor.
Removed the this.username before this.add.text() in the displayProfile() method since it's redundant.
Added quiz() method. Called quiz() method before the player enter the next room.