Aidos icon indicating copy to clipboard operation
Aidos copied to clipboard

Collission Detection improvements

Open CoreyHendrey opened this issue 7 years ago • 2 comments

I added walls to the game.

This exposed a problem with our current collision system, though.

First I had to alter the functions slightly to return boundaries correctly, this was a minor change. The major change, we will have to discuss.

For collision detection, you want to test where the player IS GOING TO BE, not where he currently is. That's my understanding anyway. The way we have it currently, this is impossible without some ugly hacky code.

Does anyone have any ideas about how to implement this nicely?

CoreyHendrey avatar Nov 27 '17 00:11 CoreyHendrey

@CoreyHendrey which hack are you talking about ?

Also have a look at the dying animation pull request, I added.

ashish2199 avatar Nov 30 '17 18:11 ashish2199

I submitted a PR. It is an OK solution until we find a better one.

StewartWallace1115 avatar Dec 19 '17 02:12 StewartWallace1115