From a94557f5119ca5cac0ecf970b02180152af83f5d Mon Sep 17 00:00:00 2001 From: jonas Date: Mon, 4 Mar 2019 00:47:23 +0100 Subject: Started collision detection, working progress Move now triggers CheckCollision for every move action Hit direction detection still missing --- collision.txt | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 collision.txt (limited to 'collision.txt') diff --git a/collision.txt b/collision.txt new file mode 100644 index 0000000..509e1bd --- /dev/null +++ b/collision.txt @@ -0,0 +1,11 @@ +collision check by using object map from click registering +collision passed as returns +cObject::collision? for both objects? + +bool onCollisionActive(unsigned int _hit, onCollisionPassice(_hit)) +_hit: TOP,BOTTOM,LEFT,RIGHT +return true: abort move ; false: continue move + +int onCollisionPassive(unsigned int _hit) +_hit: TOP,BOTTOM,LEFT,RIGHT +return: Maybe object type to tell object what it hit -- cgit v1.2.3