CompassSoftware / AppTAG

AppState's TAG - The Accounting Game
MIT License
0 stars 0 forks source link

Issue 215_ Using prompt() to set a quiz #217

Closed yuanboz closed 4 years ago

yuanboz commented 4 years ago

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.