Xinoi / DNASIC

Little SpaceGame for IT-Project
GNU General Public License v2.0
1 stars 0 forks source link

Image y coord doesnt get recognized correctly #21

Closed Xinoi closed 2 years ago

Xinoi commented 2 years ago

I added the function to click on the level images, but it only checkes the top half of the picture and above. I guess it gets the wrong coords because of spacing or smthg. Issue: grafik

Jan130 commented 2 years ago

Fixed this in a new commit by using a ClickListener instead of checking for clicks manually.

Jan130 commented 2 years ago

Not sure if that's true but maybe getY() returns the coordinates of the center?

Xinoi commented 2 years ago

I tired a click listener before but it somehow didn't work lol

Jan130 commented 2 years ago

Now it does xD