Long description
Line 227. indented once. forward slash forward slash called repeatedly by the Cannon Thread to update game elements. Line 228, indented once. private void update Positions left parenthesis double elapsed Time MS right parenthesis left brace. Line 229, indented twice. double interval equals elapsed Time MS forward slash 1000.0 semicolon forward slash forward slash convert to seconds. Line 230. blank. Line 231, indented twice. forward slash forward slash update Cannonball's position if it is on the screen. Line 232, indented twice. if left parenthesis cannon period get Cannonball left parenthesis right parenthesis exclamation point equals null right parenthesis. Line 233, indented 3 times. cannon period get Cannonball left parenthesis ...
Get Android How to Program, 3/e now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.