I\'m facing a problem which is probably extremely common in game-design. Let\'s assume that we\'ve got a 2D world