aboutsummaryrefslogtreecommitdiff
path: root/Ziel.java
blob: 32134b179cbad9630ff1ed59d903f28e69262ec0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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() {}    
}