Bewegung des 1. und 2. Spielers
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user