projects
/
supertux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Made badguys face right when spawning onscreen and to the left of the
[supertux.git]
/
src
/
badguy
/
rocketexplosion.cpp
diff --git
a/src/badguy/rocketexplosion.cpp
b/src/badguy/rocketexplosion.cpp
index
7f2b26d
..
a1497ee
100644
(file)
--- a/
src/badguy/rocketexplosion.cpp
+++ b/
src/badguy/rocketexplosion.cpp
@@
-1,7
+1,7
@@
// $Id$
// $Id$
-//
+//
// SuperTux
// SuperTux
-// Copyright (C) 200
5
Matthias Braun <matze@braunis.de>
+// Copyright (C) 200
6
Matthias Braun <matze@braunis.de>
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
@@
-12,11
+12,10
@@
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
-//
+//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
-// 02111-1307, USA.
+// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#include <config.h>
#include <config.h>
@@
-25,12
+24,8
@@
static const float EXPLOSIONTIME = 1;
RocketExplosion::RocketExplosion(const Vector& pos, Direction dir)
static const float EXPLOSIONTIME = 1;
RocketExplosion::RocketExplosion(const Vector& pos, Direction dir)
+ : BadGuy(pos, dir, "images/creatures/mr_rocket/explosion.sprite")
{
{
- start_position = pos;
- bbox.set_pos(pos);
- bbox.set_size(31.8, 31.8);
- sprite = sprite_manager->create("images/creatures/mr_rocket/explosion.sprite");
- this->dir = dir;
countMe = false;
explode();
}
countMe = false;
explode();
}
@@
-53,7
+48,7
@@
RocketExplosion::collision_solid(GameObject& , const CollisionHit& hit)
HitResponse
RocketExplosion::collision_player(Player& player, const CollisionHit& )
{
HitResponse
RocketExplosion::collision_player(Player& player, const CollisionHit& )
{
- player.kill(
Player::SHRINK
);
+ player.kill(
false
);
return ABORT_MOVE;
}
return ABORT_MOVE;
}