![]() ![]() Enemy rolls for damage (crit roll then damage roll).Send updated enemy health info to player class.Current enemy takes damage (after dodge roll and if elite enemy, armour takes damage before health).Player rolls for damage (crit roll then damage roll).Roll (choose between) for basic enemy or elite enemy.Spawn player (set up all player variables).Everything happens automatically in this initial version and there is no user input at all. Hook up your mbed, use TeraTerm (or some terminal program) to communicate and you should see the game (after compile). It is nothing special but it is intended to be something you can work forward from and make into something better. If you are very new to C++ this may very well be a little over your head, but if you have played around with it a bit and would like to learn about these topics I hope this will be very easy for you to follow and understand. Also (partially) included is a template function.The program should be fairly easy to read through. ![]() I will not do a step by step breakdown as the documentation and inline commenting pretty much does this already. Down at the very bottom are ideas for expanding the program should you choose to do so. An image of serial output has been included near the bottom. ![]() Hopefully it will be helpful to someone else. There are a few things in C++ that I hadn't used since college so I thought I should really work on that. I wrote this to improve my programming skills. A Little More Information Than You Asked ForĪ Little More Information Than You Asked For ¶. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |