serg-srri-umass / TP-data-games

Middle School/Statistics oriented data games for the Data Games Project
http://srri.umass.edu/datagames
4 stars 5 forks source link

Ship Odyssey: improve scale below ship #155

Closed cdmiller closed 11 years ago

cdmiller commented 11 years ago

Add 0 and 100 on bottom of scale, not to big, and shorten tick marks (on bottom only?) Add white bar for current range under hook. Add dark bars for range used by each previous hook drop.

cdmiller commented 11 years ago

anchor looks off center from bar, fixable?

MikeSalyh commented 11 years ago

It's an issue of pixel perfection. Because the hook goes to a percentage on the scale, its X position can be "half" over a pixel. When the screen is drawn, its X value is rounded to the nearest integer, which is causing the issue.

I believe it would be a large task to fix this problem. Should I look further into it?

cdmiller commented 11 years ago

On second look it appears that the bar is not positioned correctly, try hook at 10 -> bar looks off center, hook at 2 -> bar goes past the 0 mark. The bar looks correct in the upper range 50-100. Is there some rounding or offset problem with the bar coordinates?

MikeSalyh commented 11 years ago

Addressed in my latest commit. The pixel perfection issue still exists, but the interval bar is now properly aligned with the scale & hook.