comparison demos/shooter/scripts/common/baseobject.py @ 622:c0c3f64bfc2d

* Templatized Rect to extend it's functionality beyond integers * Added some typedefs: Rect, FloatRect, DoubleRect * Removed the Rect class from the fife_math extensions * Modified the shooter demo to use the FIFE rect template class
author prock@33b003aa-7bff-0310-803a-e67f0ece8222
date Fri, 01 Oct 2010 15:32:55 +0000
parents e241d7553496
children 291ba2946c73
comparison
equal deleted inserted replaced
621:356634098bd9 622:c0c3f64bfc2d
21 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 21 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
22 # #################################################################### 22 # ####################################################################
23 23
24 from fife import fife 24 from fife import fife
25 from fife.extensions.fife_math import normalize 25 from fife.extensions.fife_math import normalize
26 from fife.extensions.fife_math import Rect 26 from fife.fife import FloatRect as Rect
27 27
28 28
29 SHTR_DEFAULT = 0 29 SHTR_DEFAULT = 0
30 SHTR_PLAYER = 1 30 SHTR_PLAYER = 1
31 SHTR_LASTBOSS = 2 31 SHTR_LASTBOSS = 2