/pygame-vehicle-player-object

Pygame class implementing realistic handling for vehicles

Primary LanguagePython

Vehicle Player Object:

This class provides a pygame object that handles somewhat realistically.

Included features

  • Size scaling of many properties (tiny cars go slower)
  • Velocity affects turning (hit the brakes to turn sharper)
  • Tire friction (car slows down if not accelerating)
  • Reverse velocity limited

Demo:

Credit to looneybits for the public domain car asset: https://opengameart.org/content/2d-race-cars