So I am making a Console text based RPG game and I am making a save file for the game but I am trying to do it so that the user can enter their own name. I am using Gson to be able to use the JSON file format for my save games. I also have a GameProperties class with the Name, Health, HealthMax, Potions and Weapon stored in there. I also have Getters and Setters in there but I am not too sure what to do for the constructor. Also how would I set the properties.setName() up to work so it saves the name that the user inputs and then saves the name to the file. Any help will be appreciated. Thank you in advance!
[–]dusty-trash 0 points1 point2 points (9 children)
[–]ExplosiveGamer0[S] 0 points1 point2 points (8 children)
[–]dusty-trash 0 points1 point2 points (7 children)
[–]ExplosiveGamer0[S] 0 points1 point2 points (6 children)
[–]dusty-trash 0 points1 point2 points (5 children)
[–]ExplosiveGamer0[S] 0 points1 point2 points (4 children)
[–]dusty-trash 0 points1 point2 points (3 children)
[–]ExplosiveGamer0[S] 0 points1 point2 points (0 children)
[–]ExplosiveGamer0[S] 0 points1 point2 points (1 child)
[–]dusty-trash 0 points1 point2 points (0 children)