Skip to content

Contact listener

Mathias.H.Ness requested to merge contactListener into main

created new class CollisionDetector, implements ContactListener and creates events when two object collide in the gameworld. Altered Player definePlayer() in PlayerClass adding a foot sensor to the player to check when feet collide with other objects. TODO: implement some jump counter so player only can jump twice, implement resetDoubleJump in model to reset jump counter when feet touches another object.

Merge request reports

Loading