Jump to content

MediEvil Rolling Demo/Enemies: Difference between revisions

mNo edit summary
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 convert it into binary, which gives us '''10000'''. Then we need to discard the last two digits, which will give us the binary number '''100'''. This is the binary form of the decimal 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==