Skip to content
Cort edited this page Jun 21, 2021 · 3 revisions

pgzhelper module

This module capabilities provides the following capabilities...

  • Actor enhancements
    • Additional capabilities for a Pygame Zero Actor
    • Examples:
      • Movements: move_forward, point_towards
      • Animation: images, animate, fps
      • Image: scale, flip_x, flip_y
  • Collision detection
    • Detect collision between points, lines, circles, rect (AABB), rect (OBB)
    • Examples:
      • Collide.circle_line() : Check if a circle is colliding with a line
      • Collide.obb_points() : Check if an OBB rect is colliding with any of the given points
  • Utility
    • Small utility functions
    • Examples:
      • For Pygame Zero: toggle_fullscreen, hide_mouse
      • Movement and directions: distance_to, direction_to
Clone this wiki locally