Pages

Saturday, September 1, 2018

Scarecrow: Work in Progress (01-09-2018)



It is time to add some monsters in the game and here is one: Man-Eater Flower. This monster requires a lot of calculations including rotation towards player, measuring distance between player and monster, converting radians to degrees, etc. It has complex mechanism of something more than 100 code lines. The monster follows player when active. State of the monster switches between active and inactive every three seconds but Man-Eater Flower class has constructor which can enable the monster to be set always inactive.

No comments:

Post a Comment