Do gibs even belong in this game? |
The philosophy behind the event handler is that it gets passed to every instance that uses it so that they can take care of themselves. So you get hit and the character object that defines you does calculations, sees that it has an event handler and uses the event handlers add function to put another line on there. This is also used for the doors, the item pick ups, everything. It keeps the main loop from having to know what every single entity does under the hood to properly display the text which I find to be quite useful.
Now I'm not sure wha tthe next step shoudl be. I may play with giving the enemy mobs some attack code and properly patching them up so they don't "eat" each other by destroying their fellow moblin/goblin/mogoblin id at locations or walk through "doors" and cause all sorts of trouble.
such a lazy b*tard I am, I forget to install this all the time. I don't use the computer very often on the weekend.
ReplyDeleteInteresting. +Follower!
ReplyDeletejust be lazy and say the mogoblins eating each other is a feature
ReplyDeleteLooking good :)
ReplyDelete