Mercurial > mamba
comparison mamba/sprites.py @ 203:8009742103e7
Add a segment when driving over the big rat.
author | Simon Cross <hodgestar@gmail.com> |
---|---|
date | Wed, 14 Sep 2011 20:26:39 +0200 |
parents | 498c1d659a94 |
children | 2b5956bedf64 |
comparison
equal
deleted
inserted
replaced
202:498c1d659a94 | 203:8009742103e7 |
---|---|
214 | 214 |
215 class BigMouse(EdibleTile): | 215 class BigMouse(EdibleTile): |
216 image_name = "rat-big" | 216 image_name = "rat-big" |
217 | 217 |
218 def eat(self, snake): | 218 def eat(self, snake): |
219 print "Embiggen!" | 219 snake.add_segment() |
220 | 220 |
221 | 221 |
222 class SmallMouse(EdibleTile): | 222 class SmallMouse(EdibleTile): |
223 image_name = "rat-small" | 223 image_name = "rat-small" |
224 | 224 |