Libgdx 2D Game, Random generated World of random size, how to get mouse coordinates?
- by Solom
I'm a noob and English is not my mothertongue, so please bear with me!
I'm generating a map for a Sidescroller out of a 2D-array. That is, the array holds different values and I create blocks based on that value.
Now, my problem is to match mouse coordinates on screen with the actual block the mouse is pointing at.
public class GameScreen…