The implementation code in GameComponent.java to make a treasure appear after finding it could be improved. Right now, its not considered to be "good code". The use of String variables can be misleading because the String is only used to activate the treasure image. For example,
The t variable is currently an instance String variable. It really has no connection to the actual image. To fix, you could put the drawImage in a function or find another type of condition to have the treasure image pop up.
The implementation code in GameComponent.java to make a treasure appear after finding it could be improved. Right now, its not considered to be "good code". The use of String variables can be misleading because the String is only used to activate the treasure image. For example,
The t variable is currently an instance String variable. It really has no connection to the actual image. To fix, you could put the drawImage in a function or find another type of condition to have the treasure image pop up.
Suggested points: ~75