* Precondition: the character is still alive * Purpose: attack the monster at this location This brings up the monster’s information and gives you options to fight it. If you move your character into a spot with a monster you’ll initiate a fighting sequence. For right now we update the map so that monsters appear as a blue M. Later we can add functionality so the monsters can attack without being approached. For right now we’ll have our monster engage in the fight only if you provoke or attack it first. The amount of damage done to the opponent is based on the character’s abilities and type of attack/maneuver they’re doing. The overall fight concept is fairly simple. This is something we may touch on later but for now we’ll keep it in mind as we continue to program Pits Of Doom. The next time I login I can morn the loss of my best character and divert my attentions to increasing the skills of my next most powerful Elf. Even if I close the browser window the vampire can continue to pulverize Joe while he cowers in terror abandoned to his fate awaiting my next non-existent command. When I logout, all of my characters become inactive EXCEPT for characters currently engaged in a fight. To illustrate this let’s go back to poor, dying Joe Mage. The only way a fight sequence ends is if one of the combatants dies or escapes or declines to fight. Once two characters engage in a fight they cannot go inactive until the fight sequence has ended. To fix this problem we’re going to build a trap into the fighting sequence. Letting people escape from fights so easily would ruin Pits of Doom to the point that players would want to cast themselves to their own shadowy deaths. This exit strategy will make killing monsters and other members in the game a hassle - as well as making logging in/out just as trying. When I login tomorrow (or 5 minutes later because the vampire was hungry and moved on to its next snack) I can rest Joe Mage until he’s back to 100% health and be off on my merry way…. However, in this case I’ve just escaped the evil vampire. When I’m not playing other members can’t fight and kill my characters. We’ve already established that when a player logs out of all of their characters become inactive. This vampire is creaming Joe Mage with it’s kiss of Death maneuver and I don’t want to loose him so I logout of the game before he dies. Let’s say I’m fighting an a high ability vampire with my favorite character Joe Mage. Since Pits of Doom is multiplayer and people can login/logout at any time we need to consider this as we build our fighting scripts. Here comes the fun part, programming around the complexities that come along with making an internet based game. In this lesson we’ll add some graphics to our map editor and give both our character and our monsters a fighting chance. In the last lesson we learned about usability and indexes, created map/coordinate classes, then wrote a script to auto-generate monsters.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |