diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2024-07-12 11:36:39 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2024-07-12 11:36:39 +0200 |
| commit | e4816f3ce603f3f986c2806933afb518bce2c3ad (patch) | |
| tree | 6c869462c2c3204813588da05aaa750e4612fee5 /Ziel.java | |
| download | rennbahn-e4816f3ce603f3f986c2806933afb518bce2c3ad.tar.gz rennbahn-e4816f3ce603f3f986c2806933afb518bce2c3ad.zip | |
initial commit of a simple action race
Diffstat (limited to 'Ziel.java')
| -rw-r--r-- | Ziel.java | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Ziel.java b/Ziel.java new file mode 100644 index 0000000..32134b1 --- /dev/null +++ b/Ziel.java @@ -0,0 +1,16 @@ +import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot und MouseInfo) + +public class Ziel extends Actor +{ + public Ziel() { + GreenfootImage bg = new GreenfootImage(300, 30); + bg.setColor(Color.BLACK); + for (int i = 0; i < 10; i=i+2) { + int x = i*30; + bg.fillRect(i*30, 0, 30, 15); + bg.fillRect((i+1)*30, 15, 30, 15); + } + setImage(bg); + } + public void act() {} +}
\ No newline at end of file |
