# HG changeset patch # User Simon Cross # Date 1301846107 -7200 # Node ID b815471d4b95b8212af9f0efefd601d20d2a43eb # Parent fedaf16a4ddfd0a54d7d4c5934da3a172fd21045 Move sprite base class into physics since they're tightly coupled. diff -r fedaf16a4ddf -r b815471d4b95 skaapsteker/physics.py --- a/skaapsteker/physics.py Sun Apr 03 17:38:36 2011 +0200 +++ b/skaapsteker/physics.py Sun Apr 03 17:55:07 2011 +0200 @@ -0,0 +1,16 @@ +"""Model of gravity, acceleration, velocities and collisions. + + Works very closely with sprites/base.py. + """ + +import pygame.sprite + + +class Sprite(pygame.sprite.Sprite): + + mobile = True # whether the velocity may be non-zero + gravitates = True # whether gravity applies to the sprite + + +class World(object): + pass diff -r fedaf16a4ddf -r b815471d4b95 skaapsteker/sprites/base.py --- a/skaapsteker/sprites/base.py Sun Apr 03 17:38:36 2011 +0200 +++ b/skaapsteker/sprites/base.py Sun Apr 03 17:55:07 2011 +0200 @@ -1,11 +1,6 @@ """Basic sprite classes.""" -import pygame.sprite - - -class Sprite(pygame.sprite.Sprite): - mobile = True # whether the velocity may be non-zero - gravitates = True # whether gravity applies to the sprite +from skaapsteker.physics import Sprite class Monster(Sprite):