Jump to content

MediEvil Rolling Demo/Enemies: Difference between revisions

m
mNo edit summary
(3 intermediate revisions by the same user not shown)
Line 11: Line 11:
((8 + 8 + 0 + 0) >> 2) * 25
((8 + 8 + 0 + 0) >> 2) * 25


(16 >> 2) * 25
(16 >> 2) * 25</pre>
In order to bitshift the decimal number '''16''' by 2, we first need to [[wikipedia:Binary number#Decimal to Binary|convert it into binary]], which is '''10000'''. Then, we need to discard the last two digits, which will give us the binary number '''100'''. [[wikipedia:Binary number#Binary to Decimal|Converting this back to decimal]] gives us the number '''4'''.
<pre>4 * 25 = 100</pre>


4 * 25 = 100</pre>
Therefore, the Small Sword will deal '''100''' points of damage to the Headless Zombie.
 
Therefore, the Small Sword will deal 100 points of damage to the Headless Zombie.


==Enemies in playable levels==
==Enemies in playable levels==