From: Christoph Sommer Date: Sat, 16 Jun 2007 13:19:15 +0000 (+0000) Subject: Enlarged Dart hitbox to work around Darts shooting through walls (resolves issue 37) X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=413466815c75bf31efcabf81d077dddf5ccc19d0;p=supertux.git Enlarged Dart hitbox to work around Darts shooting through walls (resolves issue 37) SVN-Revision: 5107 --- diff --git a/data/images/creatures/dart/dart.sprite b/data/images/creatures/dart/dart.sprite index 9bdfac2f5..77f18580c 100644 --- a/data/images/creatures/dart/dart.sprite +++ b/data/images/creatures/dart/dart.sprite @@ -1,12 +1,12 @@ (supertux-sprite (action (name "flying-left") - (hitbox 12 15 9 1) + (hitbox 10 12 12 7) (images "flying.png") ) (action (name "flying-right") - (hitbox 11 15 9 1) + (hitbox 10 12 12 7) (mirror-action "flying-left") ) ) diff --git a/data/levels/world2/christoph5.stl b/data/levels/world2/christoph5.stl index ccea833a2..74f8a0040 100644 --- a/data/levels/world2/christoph5.stl +++ b/data/levels/world2/christoph5.stl @@ -30,7 +30,7 @@ (initial-delay 0) (fire-delay 2) (ammo -1) - (x 3508.683) + (x 3508) (y 1053.549) (direction "left") ) @@ -38,7 +38,7 @@ (initial-delay 0) (fire-delay 2) (ammo -1) - (x 3509.025) + (x 3508) (y 1137.339) (direction "left") ) diff --git a/src/badguy/darttrap.cpp b/src/badguy/darttrap.cpp index e1f4751df..7c6a84b47 100644 --- a/src/badguy/darttrap.cpp +++ b/src/badguy/darttrap.cpp @@ -23,7 +23,7 @@ #include "dart.hpp" namespace { - const float MUZZLE_Y = 28; /**< [px] muzzle y-offset from top */ + const float MUZZLE_Y = 25; /**< [px] muzzle y-offset from top */ } DartTrap::DartTrap(const lisp::Lisp& reader)