gentimouton/crowd-control — Issue #5: Sprite overhaul
Author: gentimouton
Created: 2012-01-05 03:08:26+00:00
State: open
Labels: critical, refactoring

Questions to answer:
----
- who creates/owns the sprites?
- who reads them? -> Renderer and view controller
- how much is already stored in sprite.rect? topleft, width, height, ...?

Also:
----
* load_img should be in the view, possibly in a sprite abstract class; remove tools.py
* only load a sprite image once per class, not once per instance
* sprite.image and sprite.rect should be independent. By default use blocks of color for avatars and mobs; if img file is here, then replace those blocks by the appropriate img.

Check that tuto: http://www.sacredchao.net/~piman/writing/sprite-tutorial.shtml