diff options
author | jonas <himself@jonasgunz.de> | 2019-03-04 00:47:23 +0100 |
---|---|---|
committer | jonas <himself@jonasgunz.de> | 2019-03-04 00:47:23 +0100 |
commit | a94557f5119ca5cac0ecf970b02180152af83f5d (patch) | |
tree | 905245f181305d0fc40edd802423294acb5c4686 /collision.txt | |
parent | d25296d03fdaeaadd002cd37171ef2b20695cf26 (diff) | |
download | termgl-a94557f5119ca5cac0ecf970b02180152af83f5d.tar.gz |
Started collision detection, working progress
Move now triggers CheckCollision for every move action
Hit direction detection still missing
Diffstat (limited to 'collision.txt')
-rw-r--r-- | collision.txt | 11 |
1 files changed, 11 insertions, 0 deletions
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 |