func_graphics_max2d_resetcollisions.rst 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. .. _func_graphics_max2d_resetcollisions:
  2. ===============
  3. ResetCollisions
  4. ===============
  5. ResetCollisions -
  6. Description
  7. ===========
  8. .. code-block:: blitzmax
  9. ResetCollisions(mask%=0)
  10. Clears collision layers specified by the value of @mask, mask=0 for all layers.
  11. The BlitzMax 2D collision system manages 32 layers, the @mask parameter can
  12. be a combination of the following values or the special value COLLISION_LAYER_ALL in order
  13. to perform collision operations on multiple layers.
  14. Note: COLLISION_LAYER_32 is used by the #ImagesCollide and #ImagesCollide2 commands.
  15. [ @Layer | @{Mask value}
  16. * COLLISION_LAYER_ALL | 0
  17. * COLLISION_LAYER_1 | $0001
  18. * COLLISION_LAYER_2 | $0002
  19. * COLLISION_LAYER_3 | $0004
  20. * COLLISION_LAYER_4 | $0008
  21. * COLLISION_LAYER_5 | $0010
  22. * COLLISION_LAYER_6 | $0020
  23. * COLLISION_LAYER_7 | $0040
  24. * COLLISION_LAYER_8 | $0080
  25. * COLLISION_LAYER_9 | $0100
  26. * COLLISION_LAYER_10 | $0200
  27. * COLLISION_LAYER_11 | $0400
  28. * COLLISION_LAYER_12 | $0800
  29. * COLLISION_LAYER_13 | $1000
  30. * COLLISION_LAYER_14 | $2000
  31. * COLLISION_LAYER_15 | $4000
  32. * COLLISION_LAYER_16 | $8000
  33. ]
  34. Parameters
  35. ==========
  36. Return Values
  37. =============
  38. Nothing.
  39. Examples
  40. ========
  41. See Also
  42. ========