Skip to content

Instantly share code, notes, and snippets.

@panmari
Created July 6, 2012 14:21
Show Gist options
  • Save panmari/3060436 to your computer and use it in GitHub Desktop.
Save panmari/3060436 to your computer and use it in GitHub Desktop.
setPixelLocation buggy?
public void act() {
xVelocity += FACTOR*gg.getXSlope();
yVelocity += FACTOR*gg.getYSlope();
xPos += xVelocity;
yPos += yVelocity;
setPixelLocation(new Point(Math.round(xPos), Math.round(yPos)));
L.d(isInGrid() + " " + getLocation());
if (!isInGrid())
gg.gameOver();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment