VgaGames4

VgaGames4 - collision man-pages

[.. upper level ..]

# enum VG_COLL_RETURNS

Collision return values. A return value may be set explicitly or added with VG_COLL_RETURN_ADDING().

VALUES

VG_COLL_RETURN_CONTINUE | No collision: continue moving (Value: 0)
VG_COLL_RETURN_STOP_X | Collision detected: stop x-moving and continue with y-moving (Value: 1)
VG_COLL_RETURN_STOP_Y | Collision detected: stop y-moving and continue with x-moving (Value: 2)
VG_COLL_RETURN_STOP | Collision detected: stop moving and step one back (Value: 3)
VG_COLL_RETURN_DEAD | Collision detected: (destroy yourself and) return immediately (Value: 4)
VG_COLL_RETURN_BREAK | Collision detected: stop moving and return immediately (Value: 5)

SEE ALSO
vg4->object->collision_add() vg4->object->collision_call()