WalaWala / OwnGap

A drop in replacement for HTML5 canvas and audio on Android.
Other
57 stars 1 forks source link

rounding coordinates #5

Open antag0n1st opened 10 years ago

antag0n1st commented 10 years ago

Are the coordinates rounded somewhere in the process ? if I draw the image with float values , will it be rounded to some int value ?

WalaWala commented 10 years ago

No, it should be float. The touch points are currently rounded, but not the draw coordinates itself.

antag0n1st commented 10 years ago

The drawn images are not anti-aliased. Its really hard to notice it , but once you do , it will drive you crazy.

If you are not convinced , have a closer look:

go to this link http://game.saberphp.com/paperplane3/

use your left and right arrow keys , to steer the paperplane.

start flying upwards , ( make movement on the Y axis )

and look to the mountain in the background. Put you'r eye really close to the monitor , so you can see the pixels. In google chrome , everything is just smooth. But in mozillla you can see how the background jumps from one pixel to other.

I get the same results on Android , and they are even more noticeable on a tablet.You start to see how the background is shaking.

WalaWala commented 10 years ago

I've got an idea: can you try to increase the internal resolution? e.g. if you are currently using 1280x720 try 1920x1080, this way it should be much smoother (and slower, but that's on another note).