Browse Source

Version 1 des Gameloop und Logic

noch nicht voll fiunktionsfähig
4.12.24 16:19
master
Paul-1108 2 weeks ago
parent
commit
505b58e8e8

+ 1
- 0
src/main/java/GameLogic.java View File

return false; return false;
} }



} }

+ 1
- 0
src/main/java/GameLoop.java View File

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);

} }
} }

+ 1
- 0
src/main/java/GraphicsProgram.java View File

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;

Loading…
Cancel
Save