BIT-Studio-1 / project-24-s1-astrophobia

project-24-s1-astrophobia created by GitHub Classroom
0 stars 2 forks source link

Fixed Switch Statements #26

Closed Walkcm7 closed 1 month ago

Walkcm7 commented 1 month ago

Added a method to validate the users inputs to make sure its a correct value. This reduces some repeat code by a fair bit.

Made the way the switch statements more consistent with how they're formatted and added some comments.

Fixed how the dialogue is presented to the player for which options they have to make it consistent in every room.

I'll be the first to admit that this is not well tested. Please inform me of any bugs.

todo:// Change the dialogue system to be an easier to maintain class with hashtables and an external JSON file or some other format for easier maintanence. We can wait until you guys have learnt how to do these things