diff options
| author | manuel <manuel@mausz.at> | 2011-04-06 15:07:50 +0200 |
|---|---|---|
| committer | manuel <manuel@mausz.at> | 2011-04-06 15:07:50 +0200 |
| commit | 2b3210e6d19e32b7746e0e1cdf22035ce508ca8a (patch) | |
| tree | 2fdd4967de000e72c9a9f83eefad47e7f13e6e21 /pacman-c++/actor.cpp | |
| parent | 6dc8b50817fe5da8550c245db755f7014402c62a (diff) | |
| download | foop-2b3210e6d19e32b7746e0e1cdf22035ce508ca8a.tar.gz foop-2b3210e6d19e32b7746e0e1cdf22035ce508ca8a.tar.bz2 foop-2b3210e6d19e32b7746e0e1cdf22035ce508ca8a.zip | |
adding nicer blocks :D
Diffstat (limited to 'pacman-c++/actor.cpp')
| -rw-r--r-- | pacman-c++/actor.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pacman-c++/actor.cpp b/pacman-c++/actor.cpp index 3794b63..4a132f9 100644 --- a/pacman-c++/actor.cpp +++ b/pacman-c++/actor.cpp | |||
| @@ -35,8 +35,8 @@ Actor::Actor(Color::Color color, QGraphicsItem *parent) | |||
| 35 | for (int i = 0; i < 4; i++) | 35 | for (int i = 0; i < 4; i++) |
| 36 | { | 36 | { |
| 37 | PixmapItem *img = new PixmapItem(m_pix, this); | 37 | PixmapItem *img = new PixmapItem(m_pix, this); |
| 38 | int x = i * 20 + SPRITE_MARGIN; | 38 | int x = i * SPRITE_OFFSET + SPRITE_MARGIN; |
| 39 | int y = m_direction * 20 + SPRITE_MARGIN; | 39 | int y = m_direction * SPRITE_OFFSET + SPRITE_MARGIN; |
| 40 | img->setSprite(x, y, SPRITE_WIDTH, SPRITE_HEIGHT); | 40 | img->setSprite(x, y, SPRITE_WIDTH, SPRITE_HEIGHT); |
| 41 | img->setZValue(zValue()); | 41 | img->setZValue(zValue()); |
| 42 | img->setVisible(false); | 42 | img->setVisible(false); |
