moving an object in a game (Game development in Java)
<p>I am trying to develop a game as my major project using Java.</p>

<p>I have to move a coin like object on a board (it's a board game), I want to know how to move that object in any direction and how to implement 2-D collision on that objects (I have implemented collision detection.)</p>

<p>Until now objects move in straight lines with <code>slope=1</code>, <code>pathFinder(int x1, int y1, int slope);</code> (the method to move objects) will have current position(x1, y1) and slope as input, so how to move object in any direction and at any slope? Moreover, how to implement velocity vectors in java, probably using a class Vector and defining all operations in it?</p>
