OPENGL Android getting the coordinates of my image

Posted by Debopam on Stack Overflow See other posts from Stack Overflow or by Debopam
Published on 2012-12-16T17:00:46Z Indexed on 2012/12/16 17:03 UTC
Read the original article Hit count: 162

Filed under:
|
|
|

I used the codes from the following the website. And it helped a lot to draw the required object on my screen.

But the problem I am facing is getting the coordinates of my object.

Let me explain. According to the code. You just need to add your graphic images in PNG format and refer it to the class here. What I am trying to achieve is a simple collision detection mechanism. I have added a maze (as PNG). And have a object (as PNG) to go through the blank path within the maze. In order to do this I need to know the blank spaces within the coordinates through which my object will move.

Can any one tell me how to get the blank spaces as (x,y) coordinates through which I can take my object?

© Stack Overflow or respective owner

Related posts about java

Related posts about android