anonymous / render.java
Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

Render Method

View render.java
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
public void render(Graphics2D g, float interpolation){
gBuffer.clearRect(0,0,900, 600);
gBuffer.setColor(Color.gray);
gBuffer.fillRect(448,0, 5,500);
gBuffer.setColor(Color.black);
gBuffer.fillRect(0,500,900,5);
gBuffer.drawString("Player 1: " + score1, 10 , 535);
gBuffer.drawString("Player 2: " + score2, 760, 535);
puck.drawPuck(interpolation);
p1.drawPaddle(interpolation);
p2.drawPaddle(interpolation);
goal1.drawGoal();
goal2.drawGoal();
g.drawImage(buffer,0,0,null);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.