Advertisement
Guest User

Untitled

a guest
Aug 17th, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. FUNCTION check_hit:
  2. LOCAL col
  3.  
  4. FOREACH m IN s[]
  5.  
  6. FOREACH bc IN b[]
  7.  
  8. col = SPRCOLL(1, m.x, m.y, 3, bc.x, bc.y)
  9.  
  10. //IF col = TRUE THEN END
  11.  
  12. IF col = TRUE
  13. DELETE bc
  14. ENDIF
  15.  
  16. NEXT
  17.  
  18. IF col = TRUE
  19. DELETE m
  20. ENDIF
  21.  
  22. NEXT
  23.  
  24.  
  25.  
  26. ENDFUNCTION
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement