top of page

Adding Player Stats


This week I began adding more functionality to Knight's Tale, mostly involving player stats. Equipping weapons or armor now affects a players attack and defense stats and consuming potions restores health. Next week I need to refine the functions that handle the players stats because currently my system works but it could be much cleaner and more efficient. I will probably look at some open source java games to see what methods other programmers used to solve similar issues. I have included a picture of the function that currently handles palyer stats with comments to describe how it works.


Recent Posts
Archive
bottom of page