Learning Libgdx Game Development 书籍
libgdx吧
全部回复
仅看楼主
level 5
alwaystiys 楼主
关于libgdx 的书籍 基于版本0.9.7 英文版
推荐!!
下载地址:http://dl.dbank.com/c0gvndcozx
2013年11月26日 01点11分 1
level 6
已下载,在看!
第六章 WorldController.java代码中,bunnyHead.position.y 不明白为什么" rock.position.y + bunnyHead.bounds.height + bunnyHead.origin.y"这样写,让人多糊涂啊,
我改成rock.position.y + rock.bounds.height ;的值,清晰多了,不明白作者用意
case JUMP_FALLING:
bunnyHead.position.y = rock.position.y + bunnyHead.bounds.height + bunnyHead.origin.y;//这行很费解,结果跟我下行注释代码一样
//bunnyHead.position.y = rock.position.y + rock.bounds.height ;//我增加的的
bunnyHead.jumpState = JUMP_STATE.GROUNDED;
2014年03月22日 08点03分 2
level 6
附上网上搜到的堪误:
Errata
- 8 submitted: last submission 27 Feb 2014
Errata type: Code| Page number: 163
As mentioned on page number 163(Chapter 5):
float x = cameraGUI.viewportWidth – 50 - Constants.LIVES_START * 50;
The first "minus" is NOT a minus sign, but a special hyphencharacter.
The second "minus" is missing.
Here is the corrected line:
float x = cameraGUI.viewportWidth - 50 - Constants.LIVES_START * 50;
Errata type: Code| Page number: 86
The sentence in the book:
Next, go to the Project Explorerwindow in Eclipseand open the file strings.xml
under CanyonBunny-android/res/strings.xml.
Should be:
Next, go to the Project Explorerwindow inEclipse and open the file strings.xml
underCanyonBunny-android/res/values/strings.xml.
Errata type: Code| Page number: 313
The code in the book is:
position.x + = velocity.x * deltaTime;
position.y + = velocity.y * deltaTime;
Should be:
position.x += velocity.x * deltaTime; (The extra space between + and = to be removed)
position.y += velocity.y * deltaTime;
Errata type: Code| Page number: 313
The code in the book is:
if (b2world ! = null) b2world.dispose();
Should be:
if (b2world != null) b2world.dispose();
Errata type: Code| Page number: 320
The code in the book is:
if (goalReached) {
Should be:
if (!goalReached) {
Errata type: Code| Page number: 320
The following code in the book should behighlighted:
TextureAtlas atlas =
assetManager.get(Constants.TEXTURE_ATLAS_OBJECTS);
Errata type:Technical | Page no: 105
In the Addinggame world's debug controls section,every mention of InputListenershould bereplaced by InputProcessor (andaccordingly, every mention of "thelistener" when it refers to that interface should probably be replaced by "the processor").
Errata type: Layouts | Page no: 130
In the code, the TextureAtlas atlas =assetManager.get(Constants.TEXTURE_ATLAS_OBJECTS); statement is highlighted and should bein bold.
2014年03月22日 08点03分 3
1