There is an error in one of the tutorials.

Any community contributions to libgdx go here! Some may get included in the core API when permission is granted.

There is an error in one of the tutorials.

Postby mustafa01991 » Wed Jul 27, 2011 7:18 pm

Hi,
while I was reading through the tutorials I found a small error. :?

It's on this page: http://code.google.com/p/libgdx/wiki/ProjectionViewportCamera
if scroll down to the second code block on that page, in the create() method there is this line:
Code: Select all
squareMesh.setIndices(new short[] { 0, 1, 2, 3});16

all you need to do is remove the 16 at the end of this line and it will compile. :D

This just makes beginners (like me) feel better about the library when their examples just compile with out any modification. :lol:
mustafa01991
 
Posts: 2
Joined: Wed Jul 27, 2011 6:54 pm

Re: There is an error in one of the tutorials.

Postby mzechner » Thu Jul 28, 2011 12:38 am

Thanks for reporting, i'll pass it on to the responsible person which shall be hanged.
mzechner
Site Admin
 
Posts: 4879
Joined: Sat Jul 10, 2010 3:50 pm


Return to Libgdx Contributions

Who is online

Users browsing this forum: No registered users and 1 guest