This commit is contained in:
Max
2026-09-14 23:41:15 +02:00
parent 6301a9b0a6
commit 48b3ce212f
15 changed files with 162 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* Write a description of class player here.
*
* @author (your name)
* @version (a version number or a date)
*/
public class player extends Actor
{
/**
* Act - do whatever the player wants to do. This method is called whenever
* the 'Act' or 'Run' button gets pressed in the environment.
*/
public void act()
{
}
public void bewegung(){
if(Greenfoot.isKeyDown("d")){
move(5);
}
}
}