tresinformal / drakkar

The tresinformal video game called 'Drakkar'

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fix bug in collision detection

richelbilderbeek opened this issue · comments

Currently, health and diameter are the same thing, just on different scales (to be precise: diameter == 100.0 * health).

However, when this was implemented, some collision tests failed. These were commented out by FIX_ISSUE_732.

Make those tests work again :-)

commented

732 has nothing to do with get_diameter or health?

This issue is indirectly related to changes in get_diameter (<- which return m_health multiplied by a constant factor). Should we change the way game object is constructed? Should be players be spaced correctly inside game constructor?

commented

there seams to be an issue but the test doesn't fail when I run it