source: skaapsteker/physics.py @ 22:b815471d4b95

Last change on this file since 22:b815471d4b95 was 22:b815471d4b95, checked in by Simon Cross <hodgestar@…>, 10 years ago

Move sprite base class into physics since they're tightly coupled.

File size: 326 bytes
Line 
1"""Model of gravity, acceleration, velocities and collisions.
2
3   Works very closely with sprites/base.py.
4   """
5
6import pygame.sprite
7
8
9class Sprite(pygame.sprite.Sprite):
10
11    mobile = True # whether the velocity may be non-zero
12    gravitates = True # whether gravity applies to the sprite
13
14
15class World(object):
16    pass
Note: See TracBrowser for help on using the repository browser.