Initial sharing of project
This commit is contained in:
21
Block.java
Normal file
21
Block.java
Normal file
@@ -0,0 +1,21 @@
|
||||
import java.awt.*;
|
||||
/**
|
||||
* Beschreiben Sie hier die Klasse Wand.
|
||||
*
|
||||
* @author (Ihr Name)
|
||||
* @version (eine Versionsnummer oder ein Datum)
|
||||
*/
|
||||
public class Block extends Spielobjekt
|
||||
{
|
||||
|
||||
public Block(int x, int y){
|
||||
super(x,y);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void render(Graphics2D g, int SpielobjektGröße){
|
||||
g.setColor(Color.BLUE);
|
||||
g.fillRect(x*SpielobjektGröße,y*SpielobjektGröße,SpielobjektGröße,SpielobjektGröße);
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user