Module: PseudoGame.game.collision_handlers

Module containing premade collision handlers for use with the Player class

Functions

PseudoGame.game.basic_collision_handler (frametime, player, collide_collection) A function that handles collision of some polygons with a player


Functions

🔗 PseudoGame.game.basic_collision_handler (frametime, player, collide_collection)
A function that handles collision of some polygons with a player

Parameters:

Name Type(s) Description
frametime Player the time in 1/60s since the last call of this function
player Player the player to handle collisions for (it may be moved in the process)
collide_collection PolygonCollection the collection of polygons to collide with

Returns:

    bool determines if the player should be killed
generated by LDoc 1.5.0