Advertisement
Guest User

Untitled

a guest
Apr 25th, 2014
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. For each enemy
  2. Calculate manhattan distance
  3. If 0 or 1, cost += absolute(enemy health - health) / 5
  4. Else if 2, cost += absolute(enemy heath - health) / 10
  5. Else cost += 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement