return false; | return false; | ||||
} | } | ||||
} | } |
private void draw(){ | private void draw(){ | ||||
graphics.drawTrail(player1.getTrail(), 0); | graphics.drawTrail(player1.getTrail(), 0); | ||||
graphics.drawTrail(player2.getTrail(), 1); | graphics.drawTrail(player2.getTrail(), 1); | ||||
} | } | ||||
} | } |
imgRed = loadImage("TrailRed"); | imgRed = loadImage("TrailRed"); | ||||
} | } | ||||
public void drawTrail(Queue<int[]> trail, int playerID){ | public void drawTrail(Queue<int[]> trail, int playerID){ | ||||
int particleSize = 5; | int particleSize = 5; |