Bewegung des 1. und 2. Spielers

This commit is contained in:
Max
2026-09-15 09:49:28 +02:00
parent 48b3ce212f
commit a53a0a22c6
13 changed files with 156 additions and 33 deletions
+13
View File
@@ -17,5 +17,18 @@ public class MyWorld extends World
{
// Create a new world with 600x400 cells with a cell size of 1x1 pixels.
super(600, 400, 1);
prepare();
}
/**
* Prepare the world for the start of the program.
* That is: create the initial objects and add them to the world.
*/
private void prepare()
{
player1 player1 = new player1();
addObject(player1,125,153);
player2 player2 = new player2();
addObject(player2,429,152);
}
}