ka4tik / beginning-android-games

Automatically exported from code.google.com/p/beginning-android-games
0 stars 0 forks source link

AndroidGame onCreate does not calculate scale factors correctly #80

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
Just starting the app.

What is the expected output? What do you see instead?
At startup, at the main screen, touches have no effect.

Please provide any additional information below.
The variables scaleX and scaleY are the result of dividing two ints and casting 
to float - you need to cast the ints to floats first.

Original issue reported on code.google.com by starkw...@gmail.com on 21 Mar 2014 at 5:02