In my spare time, I love VS to come to several Dota games. Later I was inspired by a flash game and made a Dota name PK. The source code is ugly.
Introduction:
Each name undergoes MD5 processing and some simpleAlgorithmA hero is generated. Heroes are divided into three categories: Force (High Life), agile (high armor, high attack), and smart (high magic resistance and high magic damage.
Each type of hero has common attacks, skill attacks, stun skills (make the other side dizzy or slow down, pause the action for one round), passive Dodge skills (the other side of the attack fails), and ultimate aoyi, most skill names are from Dota.
The probability that each skill is randomly cast. That is to say, there may be several combat results in the same two names.
Haha ~~ The following uses Java and. Net for a drill (which does not represent any position ):
[Java] Smart hero life: 1188 strength: 49 Agility: 48 intelligence: 151 attack: 166 armor: 14 magic resistance: 45
[. Net] force hero life: 2100 strength: 125 Agility: 64 intelligence: 50 attack: 200 armor: 19 magic resistance: 15
[. Net] casting a "double-edged sword "! [Java] was severely hit and hurt by 236!
[Java] meditation spell, cast "Shock Wave "! A huge wave of energy hits [. Net], causing 450 points of damage!
[. Net] launched "War trample "! [Java] vertigo and 129 points of damage!
[. Net] launches common attacks to [Java], resulting in 188 points of damage!
[Java] silience, cast the "Dragon chop "! A firebird gathers [. Net], causing 357 points of damage!
[. Net] casting a "double-edged sword "! [Java] was severely hit and hurt by 233!
[Java] launches a common attack to [. Net], causing 142 points of damage!
[. Net] attacks fail!
[Java] meditation spell, cast "Shock Wave "! A huge wave of energy hits [. Net], causing 452 points of damage!
[. Net] lost the hammer of the storm "! [Java] vertigo and 136 points of damage!
[. Net] launch an attack! [Java] the meditation spell has enabled "energy shield" to offset the damage!
[Java] knocked down !! [. Net] wins !! _
The following is the game page referenced by IFRAME:
IFRAME is not supported. paste the address:
Http://www.iiilaws.com/md5fight.aspx
Recently I am studying Silverlight, hoping to develop a graphic version one day ...... Haha