Saturday, January 2, 2010
Display Player and Enemy Stats
All that was achieved by:
All that was achieved by:
//Output information about player and enemy header
echo '<table width="100%" align="center"><tbody><tr><td><b>You</b></td> <td> </td><td><b>'.$enemy.'</b></td></tr><tr><td>';
//Output player stats
echo '<b><center><u>Level '.$level.'</u></center></b>
<b><img src="img/healthBig.gif" alt="Health" />Health:</b> '.$health.'
<b><img src="img/mind.gif" alt="Mind" />Mind:</b> '.$mind.'
<b><img src="img/body.gif" alt="Body" />Body:</b> '.$body.'
<b><img src="img/soul.gif" alt="Soul" />Soul:</b> '.$soul.'
<b><img src="img/blocked.gif" alt="Defense" />Defense:</b> '.$defense.'
<b><img src="img/attack.gif" alt="Attack" /> Attack:</b> '.$attack.'
<b><img src="img/agility.gif" alt="Agility" /> Agility:</b> '.$agility;
//Output versus and enemy image
echo'
</td><td><center><img src="img/versus.gif" alt="Versus" />
<img src="img/'.$enemy.'.gif" alt="'.$enemy.'" /></center></td><td bgcolor="#ffffff" align="left">
';
//Display Enemy Stats
echo '<b><center><u>Level '.$level.'</u></center><u></u></b>
<b><img src="img/healthBig.gif" alt="Health" />Health:</b> '.$nmeHealth.'
<b><img src="img/mind.gif" alt="Mind" />Mind:</b> '.$nmeMind.'
<b><img src="img/body.gif" alt="Body" />Body:</b> '.$nmeBody.'
<b><img src="img/soul.gif" alt="Soul" />Soul:</b> '.$nmeSoul.'
<b><img src="img/blocked.gif" alt="Defense" />Defense:</b> '.$nmeDefense.'
<b><img src="img/attack.gif" alt="Attack" /> Attack:</b> '.$nmeAttack.'
<b><img src="img/agility.gif" alt="Agility" /> Agility:</b> '.$nmeAgility.'
</td></tr></tbody></table>';
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment