Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Ok, if en[k,1] is the x of entity k, en[k,2] is the y, en[k,4] is alive/dead and dx,dy is the players //coordinates...shouldn't this return if the entity k is next to the player?
- if ( abs( en[ k , 1 ] - dx ) <= 1 or abs( en[ k , 2 ] - dy ) <= 1 ) and en[k , 4 ] == 1
- {
- //do stuff
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement