From 413466815c75bf31efcabf81d077dddf5ccc19d0 Mon Sep 17 00:00:00 2001 From: Christoph Sommer Date: Sat, 16 Jun 2007 13:19:15 +0000 Subject: [PATCH] Enlarged Dart hitbox to work around Darts shooting through walls (resolves issue 37) SVN-Revision: 5107 --- data/images/creatures/dart/dart.sprite | 4 ++-- data/levels/world2/christoph5.stl | 4 ++-- src/badguy/darttrap.cpp | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) 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) -- 2.11.0