alierqul / beginning-android-games

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

[Chapter 3] Frame Rate-Indipendent Movement calculations #22

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
In the printed version of the book, in the sub-section "Frame Rate-Indipendent 
Movement", chapter 3, page 101, first page's paragraph, math calculations are 
wrong. 

60 FPS multiplied by ~0.83 pixel (or ~0.85 as written in the text, but I 
expected ~0.83 since this is the correct result of the previous calculation), 
equals 50 pixel per second, not 100. And this is what we want, since we have 
decided previously to move our pixmap at this speed (50 PpS).

Same incorrect result is achieved with calculations for the 30 FPS device. 

Original issue reported on code.google.com by alessand...@gmail.com on 15 Aug 2011 at 3:50

GoogleCodeExporter commented 8 years ago
Hm, i have to go over this again. Thanks for pointing it out!

Original comment by badlogicgames on 24 Aug 2011 at 4:12

GoogleCodeExporter commented 8 years ago
Yes, you were totally correct. I feel very stupid now. I attribute it to me 
writting this very late at night.

Thanks for reporting, fixed in second edition!

Original comment by badlogicgames on 27 Aug 2011 at 11:47