sumsumeyrak / beginning-android-games

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

Type-O in printed book #2

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
The type-o is on page 190 on the 5th line down:

" boolean isPrepared = false; package com.badlogic.androidgames.framework.impl;"

the line should be:

"boolean isPrepared = false;"

the source code on the website is correct though.

Original issue reported on code.google.com by icyflame...@gmail.com on 6 May 2011 at 4:44

GoogleCodeExporter commented 8 years ago
There actually seems to be more code that is incorrect on the same page, it 
seems to be a copy and paste of the includes and first part of the 
implementation

Original comment by icyflame...@gmail.com on 6 May 2011 at 4:46

GoogleCodeExporter commented 8 years ago
Page 52:
There are several references to 'causal' games, when I guess this should be 
'casual'.

Page 180:
I think that this:
public void pause() {
  running = false;
  while(true) {
    try {
      renderThread.join();
    } catch (InterruptedException e) {
      // retry
    }
  }
}

should be this:

public void pause() {
  running = false;
  while(renderThread.isAlive()) {
    try {
      renderThread.join();
    } catch (InterruptedException e) {
      // retry
    }
  }
}

Original comment by cboursn...@gmail.com on 29 May 2011 at 11:35

GoogleCodeExporter commented 8 years ago
Or:
public void pause() {
  running = false;
  while(true) {
    try {
      renderThread.join();
      break;
    } catch (InterruptedException e) {
      // retry
    }
  }
}
As it is later on in the book.

Original comment by cboursn...@gmail.com on 30 May 2011 at 8:47

GoogleCodeExporter commented 8 years ago
thanks, fixed in the second revision.

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